json-to-ast
Advanced tools
Comparing version 2.0.1 to 2.0.2
36
build.js
@@ -150,2 +150,16 @@ (function (global, factory) { | ||
var _extends = Object.assign || function (target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i]; | ||
for (var key in source) { | ||
if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
} | ||
return target; | ||
}; | ||
function printLine(line, position, maxNumLength, settings) { | ||
@@ -171,3 +185,3 @@ var num = String(position); | ||
var index = (function (input, linePos, columnPos, settings) { | ||
settings = Object.assign({}, defaultSettings, settings); | ||
settings = _extends({}, defaultSettings, settings); | ||
@@ -191,2 +205,16 @@ var lines = input.split(/\r\n?|\n|\f/); | ||
var _extends = Object.assign || function (target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i]; | ||
for (var key in source) { | ||
if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
} | ||
return target; | ||
}; | ||
var errorStack = new Error().stack; | ||
@@ -199,3 +227,3 @@ | ||
Object.assign(error, props, { | ||
_extends(error, props, { | ||
name: 'SyntaxError' | ||
@@ -205,3 +233,3 @@ }); | ||
Object.defineProperty(error, 'stack', { | ||
get: function get() { | ||
get: function get$$1() { | ||
return errorStack ? errorStack.replace(/^(.+\n){1,3}/, String(error) + '\n') : ''; | ||
@@ -989,3 +1017,3 @@ } | ||
var parse$1 = (function (input, settings) { | ||
settings = Object.assign({}, defaultSettings, settings); | ||
settings = _extends({}, defaultSettings, settings); | ||
@@ -992,0 +1020,0 @@ var tokenList = tokenize(input, settings); |
{ | ||
"name": "json-to-ast", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"author": "Vlad Trushin", | ||
@@ -43,5 +43,6 @@ "description": "JSON AST parser", | ||
"babel-plugin-external-helpers": "^6.22.0", | ||
"babel-plugin-transform-object-assign": "^6.22.0", | ||
"babel-preset-es2015": "^6.24.1", | ||
"babel-preset-stage-3": "^6.24.1", | ||
"code-error-fragment": "0.0.229", | ||
"code-error-fragment": "0.0.230", | ||
"coveralls": "^2.11.9", | ||
@@ -48,0 +49,0 @@ "mocha": "^2.4.5", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29606
878
13