Socket
Socket
Sign inDemoInstall

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 1.2.0 to 2.0.0

10

cli.js

@@ -35,9 +35,7 @@ #!/usr/bin/env node

fs.readFile(file, (error, data) => {
if (error) {
fs.promises.readFile(file)
.then(data => console.log(oust(data, type).join('\n')))
.catch(error => {
console.error('Error opening file:', error.message);
process.exit(1);
}
console.log(oust(data, type).join('\n'));
});
});

18

index.js

@@ -26,28 +26,28 @@ /*!

selector: 'link[rel*="stylesheet"]',
attribute: 'href'
attribute: 'href',
},
scripts: {
selector: 'script',
attribute: 'src'
attribute: 'src',
},
imports: {
selector: 'link[rel="import"]',
attribute: 'href'
attribute: 'href',
},
preload: {
selector: 'link[rel*="preload"][as="style"]',
attribute: 'href'
attribute: 'href',
},
links: {
selector: 'a',
attribute: 'href'
attribute: 'href',
},
images: {
selector: 'img',
attribute: 'src'
attribute: 'src',
},
styles: {
selector: 'style',
method: 'text'
}
method: 'text',
},
};

@@ -89,3 +89,3 @@

type: chosenType.type,
value
value,
};

@@ -92,0 +92,0 @@ }

{
"name": "oust",
"version": "1.2.0",
"version": "2.0.0",
"author": "Addy Osmani <addyosmani@gmail.com> (https://addyosmani.com/)",

@@ -29,3 +29,3 @@ "license": "Apache-2.0",

"dependencies": {
"cheerio": "^0.22.0",
"cheerio": "^1.0.0-rc.12",
"minimist": "^1.2.5"

@@ -35,3 +35,3 @@ },

"mocha": "^7.2.0",
"xo": "^0.25.4"
"xo": "^0.52.3"
},

@@ -46,7 +46,11 @@ "keywords": [

"engines": {
"node": ">=8"
"node": ">=12"
},
"xo": {
"space": 4
"space": 4,
"rules": {
"unicorn/prefer-module": "off",
"n/prefer-global/process": "off"
}
}
}
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