sourcemap-validator
Advanced tools
Comparing version 1.1.0 to 1.1.1
11
index.js
@@ -44,2 +44,9 @@ var validate | ||
createBuffer = function (str, encoding) { | ||
// [DEP0005] Buffer() is deprecated due to security and usability issues | ||
// https://nodejs.org/api/buffer.html#buffer_new_buffer_array | ||
// Preserving backward compatibility until dropping Node version prior to v5.10.0 | ||
return Buffer.hasOwnProperty('from') ? Buffer.from(str, encoding) : new Buffer(str, encoding); | ||
}; | ||
// Validates an entire sourcemap | ||
@@ -59,3 +66,3 @@ validate = function (min, map, srcs) { | ||
map = (new Buffer(map[1], 'base64')).toString(); | ||
map = createBuffer(map[1], 'base64').toString(); | ||
min = min.replace(re, ''); | ||
@@ -141,3 +148,3 @@ } | ||
+ 'Mapping: <%=mapRef%>' | ||
, { | ||
)({ | ||
expected: expected.join(' || ') | ||
@@ -144,0 +151,0 @@ , actual: actuals.join(' || ') |
@@ -21,3 +21,3 @@ { | ||
], | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"repository": { | ||
@@ -28,6 +28,6 @@ "type": "git", | ||
"dependencies": { | ||
"source-map": "~0.1.x", | ||
"lodash.foreach": "~2.3.x", | ||
"lodash.template": "~2.3.x", | ||
"jsesc": "~0.3.x" | ||
"jsesc": "~0.3.x", | ||
"lodash.foreach": "^4.5.0", | ||
"lodash.template": "^4.5.0", | ||
"source-map": "~0.1.x" | ||
}, | ||
@@ -38,4 +38,4 @@ "scripts": { | ||
"devDependencies": { | ||
"uglify-js": "2.4.x", | ||
"jake": "0.7.x" | ||
"jake": "0.7.x", | ||
"uglify-js": "2.4.x" | ||
}, | ||
@@ -42,0 +42,0 @@ "optionalDependencies": {}, |
1317666
22
27175
+ Addedlodash._reinterpolate@3.0.0(transitive)
+ Addedlodash.foreach@4.5.0(transitive)
+ Addedlodash.template@4.5.0(transitive)
+ Addedlodash.templatesettings@4.2.0(transitive)
- Removedlodash._basebind@2.3.0(transitive)
- Removedlodash._basecreate@2.3.0(transitive)
- Removedlodash._basecreatecallback@2.3.0(transitive)
- Removedlodash._basecreatewrapper@2.3.0(transitive)
- Removedlodash._createwrapper@2.3.0(transitive)
- Removedlodash._escapehtmlchar@2.3.0(transitive)
- Removedlodash._escapestringchar@2.3.0(transitive)
- Removedlodash._htmlescapes@2.3.0(transitive)
- Removedlodash._objecttypes@2.3.0(transitive)
- Removedlodash._reinterpolate@2.3.0(transitive)
- Removedlodash._renative@2.3.0(transitive)
- Removedlodash._reunescapedhtml@2.3.0(transitive)
- Removedlodash._setbinddata@2.3.0(transitive)
- Removedlodash._shimkeys@2.3.0(transitive)
- Removedlodash._slice@2.3.0(transitive)
- Removedlodash.bind@2.3.0(transitive)
- Removedlodash.defaults@2.3.0(transitive)
- Removedlodash.escape@2.3.0(transitive)
- Removedlodash.foreach@2.3.0(transitive)
- Removedlodash.forown@2.3.0(transitive)
- Removedlodash.identity@2.3.0(transitive)
- Removedlodash.isfunction@2.3.0(transitive)
- Removedlodash.isobject@2.3.0(transitive)
- Removedlodash.keys@2.3.0(transitive)
- Removedlodash.noop@2.3.0(transitive)
- Removedlodash.support@2.3.0(transitive)
- Removedlodash.template@2.3.0(transitive)
- Removedlodash.templatesettings@2.3.0(transitive)
- Removedlodash.values@2.3.0(transitive)
Updatedlodash.foreach@^4.5.0
Updatedlodash.template@^4.5.0