Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

json-to-ast

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-to-ast - npm Package Compare versions

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);

5

package.json
{
"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",

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