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

@dbpath/pathparser

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dbpath/pathparser - npm Package Compare versions

Comparing version 0.3.12 to 0.3.13

6

dist/src/path.parser.js

@@ -64,5 +64,5 @@ "use strict";

const c = { pos: 0, tokens, validator };
const { context, error, result } = (0, exports.parseTableAndLinks)(c);
if (error)
return (0, parser_1.parserErrorMessage)(s, context, error);
const { context, errors, result } = (0, exports.parseTableAndLinks)(c);
if (errors)
return (0, parser_1.parserErrorMessage)(s, context, errors);
if (context.pos < tokens.length - 1)

@@ -69,0 +69,0 @@ return (0, parser_1.parserErrorMessage)(s, context, ["Expected '.'"]);

@@ -11,3 +11,3 @@ "use strict";

let pos = token ? token.pos : s.length;
return { error: pr.error, token, pos, s };
return { error: pr.errors, token, pos, s };
}

@@ -31,5 +31,5 @@ exports.errorData = errorData;

let initialContext = makeContext(s);
let { context, result, error } = (0, path_parser_1.parseTable)(initialContext);
if (error)
throw error;
let { context, result, errors } = (0, path_parser_1.parseTable)(initialContext);
if (errors)
throw errors;
expect(context.pos - initialContext.pos).toEqual(consume);

@@ -40,5 +40,5 @@ return result;

let initialContext = makeContext(s);
let { context, result, error } = (0, path_parser_1.parseLink)(pt)(initialContext);
if (error)
throw error;
let { context, result, errors } = (0, path_parser_1.parseLink)(pt)(initialContext);
if (errors)
throw errors;
expect(context.pos - initialContext.pos).toEqual(consume);

@@ -51,7 +51,7 @@ return result;

let cr = (0, path_parser_1.parseTable)(initialContext);
const { context, result, error } = cr;
const { context, result, errors } = cr;
expect(result).toBeUndefined();
const { pos } = errorData(cr, 'junk.' + s);
expect(pos - 'junk.'.length).toEqual(errorPos);
return error;
return errors;
}

@@ -58,0 +58,0 @@ it("should parse drive", () => {

{
"name": "@dbpath/pathparser",
"description": "",
"version": "0.3.12",
"version": "0.3.13",
"main": "dist/index",

@@ -20,6 +20,6 @@ "types": "dist/index",

"dependencies": {
"@dbpath/types": "0.3.12",
"@dbpath/utils": "0.3.12",
"@dbpath/parser": "0.3.12",
"@dbpath/fixtures": "0.3.12"
"@dbpath/types": "0.3.13",
"@dbpath/utils": "0.3.13",
"@dbpath/parser": "0.3.13",
"@dbpath/fixtures": "0.3.13"
},

@@ -26,0 +26,0 @@ "devDependencies": {

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