Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

oust

Package Overview
Dependencies
Maintainers
3
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oust - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

1

cli.js

@@ -6,2 +6,3 @@ #!/usr/bin/env node

const fs = require('fs');
const process = require('process');
const minimist = require('minimist');

@@ -8,0 +9,0 @@ const {description, version} = require('./package.json');

6

index.js

@@ -54,3 +54,3 @@ /*!

function oust(src, type, raw) {
function oust(src, type, raw = false) {
if (typeof src !== 'string' || !type) {

@@ -84,3 +84,3 @@ throw new Error('`src` and `type` required');

if (raw) {
if (raw === true) {
return {

@@ -97,4 +97,4 @@ $el: $element,

module.exports = (src, type) => oust(src, type, false);
module.exports = (src, type) => oust(src, type);
module.exports.raw = (src, type) => oust(src, type, true);
{
"name": "oust",
"version": "2.0.1",
"version": "2.0.2",
"author": "Addy Osmani <addyosmani@gmail.com> (https://addyosmani.com/)",

@@ -26,4 +26,5 @@ "license": "Apache-2.0",

"fix": "xo --fix",
"uvu": "uvu test --ignore sample",
"test": "npm run lint && npm run uvu",
"uvu": "uvu test --ignore fixtures",
"test": "npm run uvu",
"test:coverage": "c8 npm run uvu",
"xo": "xo"

@@ -36,2 +37,3 @@ },

"devDependencies": {
"c8": "^7.13.0",
"uvu": "^0.5.6",

@@ -54,3 +56,2 @@ "xo": "^0.52.3"

"capitalized-comments": "off",
"n/prefer-global/process": "off",
"unicorn/prefer-module": "off"

@@ -57,0 +58,0 @@ }

@@ -96,6 +96,6 @@ # oust [![Build Status](https://github.com/addyosmani/oust/workflows/Tests/badge.svg)](https://github.com/addyosmani/oust/actions?workflow=Tests)

Attribute | Default | Description
--- | --- | ---
`src` | not set | a valid HTML string to parse for references
`type` | not set | one of `stylesheets`, `scripts`, `imports`, `preload`, `styles`, `links`, `images`
Attribute | Default | Description
--- | --- | ---
`src` | not set | a valid HTML string to parse for references
`type` | not set | one of `stylesheets`, `scripts`, `imports`, `preload`, `styles`, `links`, `images`

@@ -102,0 +102,0 @@ ## CLI

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc