script-tags
Advanced tools
Comparing version
11
index.js
@@ -1,7 +0,2 @@ | ||
/** | ||
* script-tags <https://github.com/jonschlinkert/script-tags> | ||
* | ||
* Copyright (c) 2014 Jon Schlinkert, contributors. | ||
* Licensed under the MIT license. | ||
*/ | ||
'use strict'; | ||
@@ -15,5 +10,7 @@ var cheerio = require('cheerio'); | ||
$('script').each(function(i, elem) { | ||
var self = $(this); | ||
attributes[i] = { | ||
attrs: elem.attribs, | ||
html: $(this).html() | ||
html: self.html(), | ||
text: self.text() | ||
}; | ||
@@ -20,0 +17,0 @@ }); |
{ | ||
"name": "script-tags", | ||
"version": "0.1.1", | ||
"description": "Parse HTML script tags into JSON.", | ||
"version": "0.1.3", | ||
"homepage": "https://github.com/jonschlinkert/script-tags", | ||
"author": { | ||
"name": "Jon Schlinkert", | ||
"url": "https://github.com/jonschlinkert" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/jonschlinkert/script-tags" | ||
}, | ||
"author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
"repository": "jonschlinkert/script-tags", | ||
"bugs": { | ||
"url": "https://github.com/jonschlinkert/script-tags/issues" | ||
}, | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "https://github.com/jonschlinkert/script-tags/blob/master/LICENSE-MIT" | ||
} | ||
"license": "MIT", | ||
"files": [ | ||
"index.js" | ||
], | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "node test/test.js" | ||
"test": "./node_modules/mocha/bin/mocha test/test.js" | ||
}, | ||
"dependencies": { | ||
"cheerio": "^0.19.0" | ||
}, | ||
"devDependencies": { | ||
"chai": "^1.9.1", | ||
"fs-utils": "^0.4.3", | ||
"verb": "^0.2.10" | ||
"gulp-format-md": "^0.1.4", | ||
"mocha": "*" | ||
}, | ||
"dependencies": { | ||
"cheerio": "^0.16.0" | ||
}, | ||
"keywords": [ | ||
"cheerio", | ||
"extract", | ||
"html", | ||
"parse", | ||
"script", | ||
"scripts", | ||
"script tag", | ||
"html", | ||
"cheerio", | ||
"parse", | ||
"extract" | ||
] | ||
"scripts" | ||
], | ||
"verb": { | ||
"layout": { | ||
"name": "default" | ||
}, | ||
"plugins": [ | ||
"gulp-format-md" | ||
], | ||
"related": { | ||
"list": [ | ||
"strip-tags", | ||
"strip-attributes" | ||
] | ||
} | ||
} | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
2
-33.33%0
-100%100
25%75
63.04%4556
-98.27%4
-78.95%15
-94.51%1
Infinity%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated