script-tags
Advanced tools
Comparing version 0.1.1 to 0.1.3
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
0
100
75
4556
4
15
1
+ Addedboolbase@1.0.0(transitive)
+ Addedcheerio@0.19.0(transitive)
+ Addedcss-select@1.0.0(transitive)
+ Addedcss-what@1.0.0(transitive)
+ Addeddom-serializer@0.1.1(transitive)
+ Addeddomhandler@2.3.0(transitive)
+ Addedhtmlparser2@3.8.3(transitive)
+ Addedlodash@3.10.1(transitive)
+ Addednth-check@1.0.2(transitive)
- RemovedCSSselect@0.4.1(transitive)
- RemovedCSSwhat@0.4.7(transitive)
- Removedcheerio@0.16.0(transitive)
- Removeddom-serializer@0.2.2(transitive)
- Removeddomelementtype@2.3.0(transitive)
- Removeddomhandler@2.2.1(transitive)
- Removedentities@2.2.0(transitive)
- Removedhtmlparser2@3.7.3(transitive)
- Removedlodash@2.4.2(transitive)
Updatedcheerio@^0.19.0