New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@json-api/query-parser

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@json-api/query-parser - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

4

build/src/parser.js

@@ -223,4 +223,4 @@ /*

},
peg$c53 = /^[^(),`![\]&=+#:@$*;']/,
peg$c54 = peg$classExpectation(["(", ")", ",", "`", "!", "[", "]", "&", "=", "+", "#", ":", "@", "$", "*", ";", "'"], true, false),
peg$c53 = /^[^(),`![\]&=+#:@$*;'?\/]/,
peg$c54 = peg$classExpectation(["(", ")", ",", "`", "!", "[", "]", "&", "=", "+", "#", ":", "@", "$", "*", ";", "'", "?", "/"], true, false),

@@ -227,0 +227,0 @@ peg$currPos = 0,

@@ -95,2 +95,12 @@ "use strict";

});
it("may not have URL-meaningful characters in it (?, &, =, /)", () => {
expect(() => parseSort("?test'")).to.throw(/sort fields list but "?"/i);
expect(() => parseSort("te?st'")).to.throw(/end of input but "?"/i);
expect(() => parseSort("/arte")).to.throw(/sort fields list but "\/"/i);
expect(() => parseSort("are/te")).to.throw(/end of input but "\/"/i);
expect(() => parseSort("=arte")).to.throw(/sort fields list but "="/i);
expect(() => parseSort("are=te")).to.throw(/end of input but "="/i);
expect(() => parseSort("&arte")).to.throw(/sort fields list but "&"/i);
expect(() => parseSort("are&te")).to.throw(/end of input but "&"/i);
});
it("may have a percent sign in it", () => {

@@ -97,0 +107,0 @@ expect(parseSort("%C2%A9")).to.deep.equal([{

{
"name": "@json-api/query-parser",
"version": "2.0.0",
"version": "2.0.1",
"description": "A query parser for the ?filter and ?sort param syntax used by @json-api/server",

@@ -5,0 +5,0 @@ "main": "build/src/index.js",

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