Socket
Socket
Sign inDemoInstall

wild-wild-parser

Package Overview
Dependencies
0
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.1.0 to 3.2.0

14

build/src/serialize.js

@@ -1,3 +0,1 @@

import moize from"moize";
import{TOKEN_SEPARATOR,ARRAY_SEPARATOR}from"./tokens/escape.js";

@@ -9,3 +7,3 @@ import{getObjectTokenType}from"./tokens/main.js";

const mSerializeQuery=function(queryArrays){
export const serializeQuery=function(queryArrays){
const queryArraysA=normalizeQueryArrays(queryArrays,queryArrays);

@@ -15,6 +13,4 @@ return queryArraysA.map(serializeQueryArray).join(ARRAY_SEPARATOR);

export const serializeQuery=moize(mSerializeQuery,{maxSize:1e3});
const mSerializePath=function(path){
export const serializePath=function(path){
validatePath(path,path);

@@ -24,4 +20,2 @@ return serializeQueryArray(path);

export const serializePath=moize(mSerializePath,{maxSize:1e3});
const serializeQueryArray=function(queryArray){

@@ -39,8 +33,6 @@ return queryArray.every(isEmptyToken)?

const mSerializeToken=function(token,index){
export const serializeToken=function(token,index){
const tokenType=getObjectTokenType(token);
return tokenType.serialize(token,index);
};
const serializeToken=moize(mSerializeToken,{maxSize:1e3});
//# sourceMappingURL=serialize.js.map

@@ -1,3 +0,1 @@

import moize from"moize";
import{INDEX_TOKEN}from"./indices.js";

@@ -16,10 +14,8 @@ import{OTHER_STRING_TOKEN_TYPES,OTHER_OBJECT_TOKEN_TYPES}from"./other.js";

const mGetObjectTokenType=function(token){
export const getObjectTokenType=function(token){
return OBJECT_TOKEN_TYPES.find((tokenType)=>tokenType.testObject(token));
};
export const getObjectTokenType=moize(mGetObjectTokenType,{maxSize:1e3});
const mGetStringTokenType=function(chars,isProp){
export const getStringTokenType=function(chars,isProp){
return isProp?

@@ -30,6 +26,4 @@ PROP_TOKEN:

export const getStringTokenType=moize(mGetStringTokenType,{maxSize:1e3});
const STRING_TOKEN_TYPES=[...OTHER_STRING_TOKEN_TYPES,PROP_TOKEN];

@@ -36,0 +30,0 @@ const OBJECT_TOKEN_TYPES=[PROP_TOKEN,...OTHER_OBJECT_TOKEN_TYPES];

@@ -1,3 +0,1 @@

import moize from"moize";
import{ANY_TOKEN,ANY_DEEP_TOKEN}from"./any.js";

@@ -10,3 +8,3 @@ import{INDEX_TOKEN}from"./indices.js";

const mGetOtherStringTokenType=function(chars){
export const getOtherStringTokenType=function(chars){
return OTHER_STRING_TOKEN_TYPES.find((tokenType)=>

@@ -17,8 +15,4 @@ tokenType.testString(chars));

export const getOtherStringTokenType=moize(mGetOtherStringTokenType,{
maxSize:1e3});
export const OTHER_STRING_TOKEN_TYPES=[

@@ -25,0 +19,0 @@ ANY_TOKEN,

{
"name": "wild-wild-parser",
"version": "3.1.0",
"version": "3.2.0",
"type": "module",

@@ -49,11 +49,8 @@ "exports": "./build/src/main.js",

"devDependencies": {
"@ehmicky/dev-tasks": "^1.0.84",
"test-each": "^5.2.0"
"@ehmicky/dev-tasks": "^1.0.91",
"test-each": "^5.4.0"
},
"engines": {
"node": ">=14.18.0"
},
"dependencies": {
"moize": "^6.1.1"
}
}
<img alt="wild-wild-parser logo" src="https://raw.githubusercontent.com/ehmicky/design/main/wild-wild-parser/wild-wild-parser.svg?sanitize=true" width="700"/>
[![Codecov](https://img.shields.io/codecov/c/github/ehmicky/wild-wild-parser.svg?label=tested&logo=codecov)](https://codecov.io/gh/ehmicky/wild-wild-parser)
[![Node](https://img.shields.io/node/v/wild-wild-parser.svg?logo=node.js)](https://www.npmjs.com/package/wild-wild-parser)
[![TypeScript](https://img.shields.io/badge/-typed-brightgreen?logo=typescript&colorA=gray)](/src/main.d.ts)
[![TypeScript](https://img.shields.io/badge/-typed-brightgreen?logo=typescript&colorA=gray&logoColor=0096ff)](/src/main.d.ts)
[![Node](https://img.shields.io/node/v/wild-wild-parser.svg?logo=node.js&logoColor=66cc33)](https://www.npmjs.com/package/wild-wild-parser)
[![Twitter](https://img.shields.io/badge/%E2%80%8B-twitter-brightgreen.svg?logo=twitter)](https://twitter.com/intent/follow?screen_name=ehmicky)

@@ -7,0 +7,0 @@ [![Medium](https://img.shields.io/badge/%E2%80%8B-medium-brightgreen.svg?logo=medium)](https://medium.com/@ehmicky)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc