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

@dbpath/parser

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dbpath/parser - npm Package Compare versions

Comparing version 0.3.12 to 0.3.13

2

dist/src/parser.d.ts

@@ -10,3 +10,3 @@ import { Token } from "./tokeniser";

context: C;
error?: string[];
errors?: string[];
}

@@ -13,0 +13,0 @@ export declare const identifier: (type: string) => <C extends ParserContext>(context: C) => ResultAndContext<C, string>;

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

if (token === undefined)
return { context, error: [`Expected a ${type} but got to end`] };
return { context, errors: [`Expected a ${type} but got to end`] };
if (token.type === 'string') {

@@ -15,3 +15,3 @@ return { result: token.value, context: Object.assign(Object.assign({}, context), { pos }) };

else {
return { context, error: [`Expected a ${type} ${gotForError(context)}`] };
return { context, errors: [`Expected a ${type} ${gotForError(context)}`] };
}

@@ -21,3 +21,3 @@ };

const mapParser = (c, f) => {
if (c.error)
if (c.errors)
return c;

@@ -37,3 +37,3 @@ let result = f(c.context, c.result);

function liftError(context, error) {
return { context, error };
return { context, errors: error };
}

@@ -40,0 +40,0 @@ exports.liftError = liftError;

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

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

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