@arokodev/cli 0.1.0-alpha.5 → 0.1.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node_modules/@pairmesh/client/dist/build-info.generated.d.ts +12 -12
- package/node_modules/@pairmesh/client/dist/build-info.generated.js +6 -6
- package/node_modules/@pairmesh/client/dist/connectivity/relay/hosted-server.js +1 -1
- package/node_modules/@pairmesh/client/dist/session/schemas.d.ts +10 -10
- package/node_modules/@pairmesh/client/dist/session/schemas.d.ts.map +1 -1
- package/node_modules/@pairmesh/client/package.json +5 -5
- package/node_modules/@pairmesh/coordination/package.json +5 -5
- package/node_modules/@pairmesh/mcp/package.json +5 -5
- package/node_modules/@pairmesh/permissions/package.json +2 -2
- package/node_modules/@pairmesh/protocol/dist/action.d.ts +1 -1
- package/node_modules/@pairmesh/protocol/dist/inspection-execution.d.ts +1 -1
- package/node_modules/@pairmesh/protocol/dist/inspection-thread.d.ts +1 -1
- package/node_modules/@pairmesh/protocol/dist/inspection-thread.d.ts.map +1 -1
- package/node_modules/@pairmesh/protocol/dist/inspection.d.ts +2 -2
- package/node_modules/@pairmesh/protocol/dist/pairing.d.ts +1 -1
- package/node_modules/@pairmesh/protocol/dist/progress-event.d.ts +1 -1
- package/node_modules/@pairmesh/protocol/dist/progress-event.d.ts.map +1 -1
- package/node_modules/@pairmesh/protocol/package.json +2 -2
- package/node_modules/@pairmesh/shared/package.json +1 -1
- package/node_modules/body-parser/README.md +17 -13
- package/node_modules/body-parser/lib/read.js +74 -57
- package/node_modules/body-parser/lib/types/json.js +11 -11
- package/node_modules/body-parser/lib/types/urlencoded.js +5 -5
- package/node_modules/body-parser/lib/utils.js +0 -15
- package/node_modules/body-parser/package.json +7 -12
- package/node_modules/encodeurl/README.md +14 -0
- package/node_modules/encodeurl/index.js +9 -11
- package/node_modules/encodeurl/package.json +13 -6
- package/node_modules/jose/README.md +2 -2
- package/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +5 -4
- package/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +4 -4
- package/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +5 -4
- package/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +5 -5
- package/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +5 -4
- package/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +5 -5
- package/node_modules/jose/dist/types/jws/compact/sign.d.ts +5 -4
- package/node_modules/jose/dist/types/jws/compact/verify.d.ts +5 -5
- package/node_modules/jose/dist/types/jws/flattened/sign.d.ts +5 -4
- package/node_modules/jose/dist/types/jws/flattened/verify.d.ts +6 -5
- package/node_modules/jose/dist/types/jws/general/sign.d.ts +9 -6
- package/node_modules/jose/dist/types/jws/general/verify.d.ts +7 -5
- package/node_modules/jose/dist/types/jwt/decrypt.d.ts +10 -6
- package/node_modules/jose/dist/types/jwt/encrypt.d.ts +1 -1
- package/node_modules/jose/dist/types/jwt/sign.d.ts +1 -1
- package/node_modules/jose/dist/types/jwt/unsecured.d.ts +3 -1
- package/node_modules/jose/dist/types/jwt/verify.d.ts +6 -5
- package/node_modules/jose/dist/types/key/export.d.ts +1 -1
- package/node_modules/jose/dist/types/key/generate_secret.d.ts +1 -1
- package/node_modules/jose/dist/types/key/import.d.ts +2 -2
- package/node_modules/jose/dist/types/types.d.ts +173 -107
- package/node_modules/jose/dist/types/util/decode_jwt.d.ts +3 -2
- package/node_modules/jose/dist/types/util/errors.d.ts +1 -1
- package/node_modules/jose/dist/webapi/jwe/general/decrypt.js +3 -2
- package/node_modules/jose/dist/webapi/jwe/general/encrypt.js +3 -3
- package/node_modules/jose/dist/webapi/jwk/thumbprint.js +8 -8
- package/node_modules/jose/dist/webapi/jwks/local.js +2 -1
- package/node_modules/jose/dist/webapi/jwks/remote.js +6 -4
- package/node_modules/jose/dist/webapi/jws/general/sign.js +3 -3
- package/node_modules/jose/dist/webapi/jws/general/verify.js +5 -11
- package/node_modules/jose/dist/webapi/jwt/encrypt.js +6 -9
- package/node_modules/jose/dist/webapi/jwt/sign.js +2 -2
- package/node_modules/jose/dist/webapi/jwt/unsecured.js +3 -3
- package/node_modules/jose/dist/webapi/key/generate_secret.js +4 -4
- package/node_modules/jose/dist/webapi/lib/asn1.js +2 -2
- package/node_modules/jose/dist/webapi/lib/buffer_utils.js +4 -4
- package/node_modules/jose/dist/webapi/lib/content_encryption.js +8 -8
- package/node_modules/jose/dist/webapi/lib/deflate.js +2 -1
- package/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +26 -23
- package/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +5 -5
- package/node_modules/jose/dist/webapi/lib/jws_algorithms.js +2 -2
- package/node_modules/jose/dist/webapi/lib/jws_sign.js +11 -11
- package/node_modules/jose/dist/webapi/lib/jws_verify.js +19 -16
- package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +48 -44
- package/node_modules/jose/dist/webapi/lib/key.js +6 -4
- package/node_modules/jose/dist/webapi/lib/key_management.js +17 -18
- package/node_modules/jose/dist/webapi/lib/validate.js +10 -10
- package/node_modules/jose/dist/webapi/util/decode_jwt.js +12 -12
- package/node_modules/jose/dist/webapi/util/decode_protected_header.js +5 -5
- package/node_modules/jose/package.json +1 -1
- package/node_modules/object-inspect/CHANGELOG.md +31 -0
- package/node_modules/object-inspect/index.js +326 -24
- package/node_modules/object-inspect/package.json +22 -13
- package/node_modules/object-inspect/readme.markdown +4 -1
- package/node_modules/object-inspect/stringWidth.js +68 -0
- package/node_modules/object-inspect/stringWidthRanges.js +38 -0
- package/node_modules/on-finished/index.js +14 -2
- package/node_modules/on-finished/package.json +11 -7
- package/node_modules/qs/.editorconfig +1 -1
- package/node_modules/qs/.github/THREAT_MODEL.md +4 -2
- package/node_modules/qs/CHANGELOG.md +103 -14
- package/node_modules/qs/README.md +90 -9
- package/node_modules/qs/dist/qs.js +19 -19
- package/node_modules/qs/eslint.config.mjs +61 -50
- package/node_modules/qs/lib/formats.js +7 -2
- package/node_modules/qs/lib/parse.js +121 -12
- package/node_modules/qs/lib/stringify.js +9 -7
- package/node_modules/qs/lib/utils.js +158 -15
- package/node_modules/qs/package.json +8 -8
- package/node_modules/qs/test/parse.js +509 -2
- package/node_modules/qs/test/stringify.js +485 -33
- package/node_modules/qs/test/utils.js +245 -3
- package/node_modules/router/HISTORY.md +67 -52
- package/node_modules/router/README.md +222 -2
- package/node_modules/router/index.d.ts +188 -0
- package/node_modules/router/index.js +86 -50
- package/node_modules/router/lib/layer.js +154 -47
- package/node_modules/router/lib/param.js +47 -0
- package/node_modules/router/lib/route.d.ts +118 -0
- package/node_modules/router/lib/route.js +14 -8
- package/node_modules/router/lib/symbols.js +4 -0
- package/node_modules/router/lib/tracing.js +173 -0
- package/node_modules/router/package.json +24 -9
- package/node_modules/ws/README.md +22 -31
- package/node_modules/ws/lib/buffer-util.js +13 -2
- package/node_modules/ws/lib/receiver.js +8 -0
- package/node_modules/ws/lib/sender.js +4 -1
- package/node_modules/ws/lib/websocket-server.js +3 -0
- package/node_modules/ws/lib/websocket.js +66 -16
- package/node_modules/ws/package.json +1 -1
- package/node_modules/zod/package.json +1 -1
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +27 -0
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +7 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +6 -0
- package/node_modules/zod/src/v4/core/compile.ts +9 -0
- package/node_modules/zod/src/v4/core/schemas.ts +35 -1
- package/node_modules/zod/src/v4/core/util.ts +13 -0
- package/node_modules/zod/src/v4/core/versions.ts +1 -1
- package/node_modules/zod/v4/core/compile.cjs +8 -0
- package/node_modules/zod/v4/core/compile.js +8 -0
- package/node_modules/zod/v4/core/schemas.cjs +30 -0
- package/node_modules/zod/v4/core/schemas.d.cts +3 -1
- package/node_modules/zod/v4/core/schemas.d.ts +3 -1
- package/node_modules/zod/v4/core/schemas.js +30 -0
- package/node_modules/zod/v4/core/util.cjs +15 -0
- package/node_modules/zod/v4/core/util.d.cts +2 -0
- package/node_modules/zod/v4/core/util.d.ts +2 -0
- package/node_modules/zod/v4/core/util.js +14 -0
- package/node_modules/zod/v4/core/versions.cjs +1 -1
- package/node_modules/zod/v4/core/versions.js +1 -1
- package/package.json +7 -7
- package/node_modules/object-inspect/.eslintrc +0 -53
- package/node_modules/object-inspect/.nycrc +0 -13
- package/node_modules/object-inspect/example/all.js +0 -23
- package/node_modules/object-inspect/example/circular.js +0 -6
- package/node_modules/object-inspect/example/fn.js +0 -5
- package/node_modules/object-inspect/example/inspect.js +0 -10
- package/node_modules/object-inspect/test/bigint.js +0 -58
- package/node_modules/object-inspect/test/browser/dom.js +0 -15
- package/node_modules/object-inspect/test/circular.js +0 -16
- package/node_modules/object-inspect/test/deep.js +0 -12
- package/node_modules/object-inspect/test/element.js +0 -53
- package/node_modules/object-inspect/test/err.js +0 -48
- package/node_modules/object-inspect/test/fakes.js +0 -29
- package/node_modules/object-inspect/test/fn.js +0 -76
- package/node_modules/object-inspect/test/global.js +0 -17
- package/node_modules/object-inspect/test/has.js +0 -15
- package/node_modules/object-inspect/test/holes.js +0 -15
- package/node_modules/object-inspect/test/indent-option.js +0 -271
- package/node_modules/object-inspect/test/inspect.js +0 -139
- package/node_modules/object-inspect/test/lowbyte.js +0 -12
- package/node_modules/object-inspect/test/number.js +0 -58
- package/node_modules/object-inspect/test/quoteStyle.js +0 -26
- package/node_modules/object-inspect/test/toStringTag.js +0 -40
- package/node_modules/object-inspect/test/undef.js +0 -12
- package/node_modules/object-inspect/test/values.js +0 -261
- package/node_modules/object-inspect/test-core-js.js +0 -26
- package/node_modules/on-finished/HISTORY.md +0 -98
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Qs = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
|
2
|
-
"use strict";var replace=String.prototype.replace,percentTwenties=/%20/g,Format={RFC1738:"RFC1738",RFC3986:"RFC3986"};module.exports={default:Format.RFC3986,formatters:{RFC1738:function(e){return replace.call(e,percentTwenties,"+")},RFC3986:function(e){return String(e)}},RFC1738:Format.RFC1738,RFC3986:Format.RFC3986};
|
|
2
|
+
"use strict";var replace=String.prototype.replace,percentTwenties=/%20/g,Format={RFC1738:"RFC1738",RFC3986:"RFC3986",WHATWG:"WHATWG"};module.exports={default:Format.RFC3986,formatters:{RFC1738:function(e){return replace.call(e,percentTwenties,"+")},RFC3986:function(e){return String(e)},WHATWG:function(e){return replace.call(e,percentTwenties,"+")}},RFC1738:Format.RFC1738,RFC3986:Format.RFC3986,WHATWG:Format.WHATWG};
|
|
3
3
|
|
|
4
4
|
},{}],2:[function(require,module,exports){
|
|
5
5
|
"use strict";var stringify=require(4),parse=require(3),formats=require(1);module.exports={formats:formats,parse:parse,stringify:stringify};
|
|
6
6
|
|
|
7
|
-
},{"1":1,"3":3,"4":4}],
|
|
8
|
-
"use strict";var utils=require(5),has=Object.prototype.hasOwnProperty,isArray=Array.isArray,defaults={
|
|
7
|
+
},{"1":1,"3":3,"4":4}],4:[function(require,module,exports){
|
|
8
|
+
"use strict";var getSideChannel=require(46),utils=require(5),formats=require(1),has=Object.prototype.hasOwnProperty,arrayPrefixGenerators={brackets:function brackets(e){return e+"[]"},comma:"comma",indices:function indices(e,r){return e+"["+r+"]"},repeat:function repeat(e){return e}},isArray=Array.isArray,push=Array.prototype.push,pushToArray=function(e,r){push.apply(e,isArray(r)?r:[r])},toISO=Date.prototype.toISOString,defaultFormat=formats.default,defaults={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",depth:1/0,encode:!0,encodeDotInKeys:!1,encoder:utils.encode,encodeValuesOnly:!1,filter:void 0,format:defaultFormat,formatter:formats.formatters[defaultFormat],indices:!1,serializeDate:function serializeDate(e){return toISO.call(e)},skipNulls:!1,strictNullHandling:!1},isNonNullishPrimitive=function isNonNullishPrimitive(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||"symbol"==typeof e||"bigint"==typeof e},sentinel={},stringify=function stringify(e,r,t,o,n,a,i,l,s,f,u,d,c,y,p,m,h,v,g,b){var w=e;if(b>g)throw new RangeError("Input depth exceeded depth option of "+g);for(var D=v,A=0,S=!1;void 0!==(D=D.get(sentinel))&&!S;){var E=D.get(e);if(A+=1,void 0!==E){if(E===A)throw new RangeError("Cyclic object value");S=!0}void 0===D.get(sentinel)&&(A=0)}if((w="function"==typeof f?f(r,w):w)instanceof Date?w=c(w):"comma"===t&&isArray(w)&&(w=utils.maybeMap(w,function(e){return e instanceof Date?c(e):e})),null===w){if(a)return p(s&&!m?s(r,defaults.encoder,h,"key",y):r);w=""}if(isNonNullishPrimitive(w)||utils.isBuffer(w))return s?[p(m?r:s(r,defaults.encoder,h,"key",y))+"="+p(s(w,defaults.encoder,h,"value",y))]:[p(r)+"="+p(String(w))];var N,O=[];if(void 0===w)return O;if("comma"===t&&isArray(w))m&&s&&(w=utils.maybeMap(w,function(e){return null==e?e:s(e,defaults.encoder,h,"value",y)})),N=[{value:w.length>0?utils.toCoercible(w).join(",")||null:void 0}];else if(isArray(f))N=f;else{var T=Object.keys(w);N=u?T.sort(u):T}var k=String(r),I=o&&isArray(w)&&1===w.length?k+"[]":k;if(n&&isArray(w)&&0===w.length&&0===Object.keys(w).length)return p(s&&!m?s(I,defaults.encoder,h,"key",y):I)+"[]";for(var P=0;P<N.length;++P){var x=N[P],K="object"==typeof x&&x&&void 0!==x.value?x.value:w[x];if(!i||null!==K){var z=d&&l?String(x).replace(/\./g,"%2E"):String(x),j=isArray(w)?"function"==typeof t?t(I,z):I:I+(d?"."+z:"["+z+"]");v.set(e,A);var F=getSideChannel();F.set(sentinel,v),pushToArray(O,stringify(K,j,t,o,n,a,i,l,"comma"===t&&m&&isArray(w)?null:s,f,u,d,c,y,p,m,h,F,g,b+1))}}return O},normalizeStringifyOptions=function normalizeStringifyOptions(e){if(!e)return defaults;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var r=e.charset||defaults.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=formats.default;if(void 0!==e.format){if(!has.call(formats.formatters,e.format))throw new TypeError("Unknown format option provided.");t=e.format}var o,n=formats.formatters[t],a=defaults.filter;if(("function"==typeof e.filter||isArray(e.filter))&&(a=e.filter),o=has.call(arrayPrefixGenerators,e.arrayFormat)?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":defaults.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var i=void 0===e.allowDots?!0===e.encodeDotInKeys||defaults.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:defaults.addQueryPrefix,allowDots:i,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:defaults.allowEmptyArrays,arrayFormat:o,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:defaults.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?defaults.delimiter:e.delimiter,depth:"number"==typeof e.depth?e.depth:defaults.depth,encode:"boolean"==typeof e.encode?e.encode:defaults.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:defaults.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:defaults.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:defaults.encodeValuesOnly,filter:a,format:t,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:defaults.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:defaults.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:defaults.strictNullHandling}};module.exports=function(e,r){var t,o,n=e,a=normalizeStringifyOptions(r);"function"==typeof a.filter?n=(o=a.filter)("",n):isArray(a.filter)&&(t=o=a.filter.slice());var i=[];if("object"!=typeof n||null===n)return"";var l=arrayPrefixGenerators[a.arrayFormat],s="comma"===l&&a.commaRoundTrip;t||(t=Object.keys(n)),a.sort&&t.sort(a.sort);for(var f=getSideChannel(),u=0;u<t.length;++u){var d=t[u];if(null!=d){var c=n[d];if(!a.skipNulls||null!==c){var y=a.encodeDotInKeys?String(d).replace(/\./g,"%2E"):String(d);pushToArray(i,stringify(c,y,l,s,a.allowEmptyArrays,a.strictNullHandling,a.skipNulls,a.encodeDotInKeys,a.encode?a.encoder:null,o,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,f,a.depth,0))}}}var p=i.join(a.delimiter),m=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?m+="utf8=%26%2310003%3B"+a.delimiter:m+="utf8=%E2%9C%93"+a.delimiter),p.length>0?m+p:""};
|
|
9
9
|
|
|
10
|
-
},{"5":5}],
|
|
11
|
-
"use strict";var getSideChannel=require(46),utils=require(5),
|
|
10
|
+
},{"1":1,"46":46,"5":5}],3:[function(require,module,exports){
|
|
11
|
+
"use strict";var getSideChannel=require(46),utils=require(5),has=Object.prototype.hasOwnProperty,isArray=Array.isArray,getPrototypeOf=Object.getPrototypeOf,fromCharCode=String.fromCharCode,isPlainContainer=function isPlainContainer(e){if(!e||"object"!=typeof e)return!1;if(isArray(e))return!0;var t=getPrototypeOf(e);return t===Object.prototype||null===t},emptyCopyOf=function emptyCopyOf(e){if(isArray(e)){var t=[];return t.length=e.length,t}return null===getPrototypeOf(e)?{__proto__:null}:{}},copyInput=function copyInput(e){for(var t=getSideChannel(),r={},i=[{source:e,target:r}],a=0;a<i.length;++a)for(var o=i[a].source,n=i[a].target,l=Object.keys(o),s=0;s<l.length;++s){var c=o[l[s]];if(isPlainContainer(c)){if(!t.has(c)){var p=emptyCopyOf(c);t.set(c,p),i[i.length]={source:c,target:p}}utils.setProperty(n,l[s],t.get(c))}else utils.setProperty(n,l[s],c)}return r},defaults={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:utils.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},interpretNumericEntities=function(e){return e.replace(/&#(\d+);/g,function(e,t){var r=parseInt(t,10);return r>65535&&r<=1114111?fromCharCode(55296|(r-=65536)>>10,56320|1023&r):fromCharCode(r)})},parseArrayValue=function(e,t,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1){if(t.throwOnLimitExceeded)for(var i=0,a=e.indexOf(",");a>-1;){if((i+=1)>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");a=e.indexOf(",",a+1)}return e.split(",")}if(t.throwOnLimitExceeded&&r>=t.arrayLimit&&r>0)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},isoSentinel="utf8=%26%2310003%3B",charsetSentinel="utf8=%E2%9C%93",parseValues=function parseQueryStringValues(e,t){var r={__proto__:null},i=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;i=i.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var a=t.parameterLimit===1/0?void 0:t.parameterLimit,o=i.split(t.delimiter,t.throwOnLimitExceeded&&void 0!==a?a+1:a);if(t.throwOnLimitExceeded&&void 0!==a&&o.length>a)throw new RangeError("Parameter limit exceeded. Only "+a+" parameter"+(1===a?"":"s")+" allowed.");var n,l=-1,s=t.charset;if(t.charsetSentinel)for(n=0;n<o.length;++n)0===o[n].indexOf("utf8=")&&(o[n]===charsetSentinel?s="utf-8":o[n]===isoSentinel&&(s="iso-8859-1"),l=n,n=o.length);for(n=0;n<o.length;++n)if(n!==l){var c,p,d=o[n],u=d.indexOf("]="),f=-1===u?d.indexOf("="):u+1,y=f>1&&"[]"===d.slice(f-2,f);if(-1===f?(c=t.decoder(d,defaults.decoder,s,"key"),p=t.strictNullHandling?null:""):null!==(c=t.decoder(d.slice(0,f),defaults.decoder,s,"key"))&&(p=utils.maybeMap(parseArrayValue(d.slice(f+1),t,isArray(r[c])&&("combine"===t.duplicates||y)?r[c].length:0),function(e){return t.decoder(e,defaults.decoder,s,"value")})),p&&t.interpretNumericEntities&&"iso-8859-1"===s&&(p=utils.maybeMap(p,function(e){return e?interpretNumericEntities(String(e)):e})),y&&(p=isArray(p)?[p]:p),t.comma&&isArray(p)&&p.length>t.arrayLimit&&(p=utils.combine([],p,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded)),null!==c){var m=has.call(r,c);m&&("combine"===t.duplicates||y)?r[c]=utils.combine(r[c],p,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded):m&&"last"!==t.duplicates||(r[c]=p)}}return r},stripWrappingBrackets=function stripWrappingBrackets(e){return"["===e.charAt(0)&&"]"===e.charAt(e.length-1)?e.slice(1,-1):e},parseObject=function(e,t,r,i){var a=0;if(e.length>0&&"[]"===e[e.length-1]){var o=e.slice(0,-1).join("");a=Array.isArray(t)&&t[o]?t[o].length:0}for(var n=i?t:parseArrayValue(t,r,a),l=e.length-1;l>=0;--l){var s,c=e[l];if("[]"===c&&r.parseArrays)s=utils.isOverflow(n)?n:r.allowEmptyArrays&&(""===n||r.strictNullHandling&&null===n)?[]:utils.combine([],n,r.arrayLimit,r.plainObjects,r.throwOnLimitExceeded);else{s=r.plainObjects?{__proto__:null}:{};var p=stripWrappingBrackets(c),d=r.decodeDotInKeys?p.replace(/%2E/gi,"."):p,u=parseInt(d,10),f=!isNaN(u)&&c!==d&&String(u)===d&&u>=0&&r.parseArrays;if(r.parseArrays||""!==d)if(f&&u<r.arrayLimit)(s=[])[u]=n;else{if(f&&r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(1===r.arrayLimit?"":"s")+" allowed in an array.");f?(s[u]=n,utils.markOverflow(s,u)):"__proto__"!==d&&(s[d]=n)}else s[0]=n}n=s}return n},topLevelDotsToBrackets=function topLevelDotsToBrackets(e){for(var t="",r=0,i=0;i<e.length;i+=1){var a=e.charCodeAt(i);if(91===a)r+=1,t+="[";else if(93===a)r>0&&(r-=1),t+="]";else if(46===a&&0===r&&i+1<e.length&&46!==e.charCodeAt(i+1)&&91!==e.charCodeAt(i+1)){for(var o=i+1,n=o;n<e.length&&46!==e.charCodeAt(n)&&91!==e.charCodeAt(n);)n+=1;t+="["+e.slice(o,n)+"]",i=n-1}else t+=e.charAt(i)}return t},splitKeyIntoSegments=function splitKeyIntoSegments(e,t){var r=t.allowDots?topLevelDotsToBrackets(e):e;if(t.depth<=0){if(!t.plainObjects&&has.call(Object.prototype,stripWrappingBrackets(r))&&!t.allowPrototypes)return;return[r]}var i=[],a=r.indexOf("["),o=a>=0?r.slice(0,a):r;if(o){if(!t.plainObjects&&has.call(Object.prototype,o)&&!t.allowPrototypes)return;i[i.length]=o}for(var n=r.length,l=a,s=0;l>=0&&s<t.depth;){for(var c=1,p=l+1,d=-1;p<n&&d<0;){var u=r.charCodeAt(p);91===u?c+=1:93===u&&0==(c-=1)&&(d=p),p+=1}if(d<0)return i[i.length]="["+r.slice(l)+"]",i;var f=r.slice(l,d+1),y=f.slice(1,-1);if(!t.plainObjects&&has.call(Object.prototype,y)&&!t.allowPrototypes)return;i[i.length]=f,s+=1,l=r.indexOf("[",d+1)}if(l>=0){if(!0===t.strictDepth)throw new RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");i[i.length]="["+r.slice(l)+"]"}return i},parseKeys=function parseQueryStringKeys(e,t,r,i){if(e){var a=splitKeyIntoSegments(e,r);if(a)return parseObject(a,t,r,i)}},normalizeParseOptions=function normalizeParseOptions(e){if(!e)return defaults;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?defaults.charset:e.charset,r=void 0===e.duplicates?defaults.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||defaults.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:defaults.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:defaults.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:defaults.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:defaults.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:defaults.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:defaults.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:defaults.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:defaults.decoder,delimiter:"string"==typeof e.delimiter||utils.isRegExp(e.delimiter)?e.delimiter:defaults.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:defaults.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:defaults.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:defaults.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:defaults.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:defaults.strictDepth,strictMerge:"boolean"==typeof e.strictMerge?!!e.strictMerge:defaults.strictMerge,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:defaults.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}};module.exports=function(e,t){var r=normalizeParseOptions(t);if(""===e||null==e)return r.plainObjects?{__proto__:null}:{};for(var i="string"==typeof e?parseValues(e,r):copyInput(e),a=r.plainObjects?{__proto__:null}:{},o=Object.keys(i),n=0;n<o.length;++n){var l=o[n],s=parseKeys(l,i[l],r,"string"==typeof e);a=utils.merge(a,s,r)}return!0===r.allowSparse?a:utils.compact(a)};
|
|
12
12
|
|
|
13
|
-
},{"
|
|
14
|
-
"use strict";var formats=require(1),getSideChannel=require(46),defineProperty=require(14),has=Object.prototype.hasOwnProperty,isArray=Array.isArray,overflowChannel=getSideChannel(),markOverflow=function markOverflow(e,r){return overflowChannel.set(e,r),e},isOverflow=function isOverflow(e){return overflowChannel.has(e)},getMaxIndex=function getMaxIndex(e){return overflowChannel.get(e)},setMaxIndex=function setMaxIndex(e,r){overflowChannel.set(e,r)},hexTable=function(){for(var e=[],r=0;r<256;++r)e[e.length]="%"+((r<16?"0":"")+r.toString(16)).toUpperCase();return e}(),compactQueue=function compactQueue(e){for(;e.length>1;){var r=e.pop(),t=r.obj[r.prop];if(isArray(t)){for(var n=[],
|
|
13
|
+
},{"46":46,"5":5}],5:[function(require,module,exports){
|
|
14
|
+
"use strict";var formats=require(1),getSideChannel=require(46),defineProperty=require(14),has=Object.prototype.hasOwnProperty,isArray=Array.isArray,overflowChannel=getSideChannel(),markOverflow=function markOverflow(e,r){return overflowChannel.set(e,r),e},isOverflow=function isOverflow(e){return overflowChannel.has(e)},getMaxIndex=function getMaxIndex(e){return overflowChannel.get(e)},setMaxIndex=function setMaxIndex(e,r){overflowChannel.set(e,r)},conflictChannel=getSideChannel(),markConflict=function markConflict(e,r){return conflictChannel.set(e,r),e},isConflict=function isConflict(e){return conflictChannel.has(e)},getConflictIndex=function getConflictIndex(e){return conflictChannel.get(e)},hexTable=function(){for(var e=[],r=0;r<256;++r)e[e.length]="%"+((r<16?"0":"")+r.toString(16)).toUpperCase();return e}(),compactQueue=function compactQueue(e){for(;e.length>1;){var r=e.pop(),t=r.obj[r.prop];if(isArray(t)){for(var n=[],i=0;i<t.length;++i)void 0!==t[i]&&(n[n.length]=t[i]);r.obj[r.prop]=n}}},arrayToObject=function arrayToObject(e,r){for(var t=r&&r.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)void 0!==e[n]&&(t[n]=e[n]);return t},setProperty=function setProperty(e,r,t){"__proto__"===r&&defineProperty?defineProperty(e,r,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[r]=t},maxNumericIndex=function maxNumericIndex(e,r){for(var t=r,n=Object.keys(e),i=0;i<n.length;++i){var o=parseInt(n[i],10);String(o)===n[i]&&o>t&&(t=o)}return t},countElements=function countElements(e){for(var r=0,t=0;t<e.length;++t)has.call(e,t)&&(r+=1);return r},limitedPair=function limitedPair(e,r,t){var n=[e,r];if(t&&"number"==typeof t.arrayLimit&&n.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return markOverflow(arrayToObject(n,t),1)}return n},merge=function merge(e,r,t){if(!r)return e;if("object"!=typeof r&&"function"!=typeof r){if(isArray(e)){var n=e.length;if(t&&"number"==typeof t.arrayLimit&&countElements(e)>=t.arrayLimit){if(t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return markOverflow(arrayToObject(e.concat(r),t),n)}e[n]=r}else{if(!e||"object"!=typeof e)return limitedPair(e,r,t);if(isOverflow(e)){var i=getMaxIndex(e)+1;e[i]=r,setMaxIndex(e,i)}else if(t&&t.strictMerge&&isConflict(e)){var o=getConflictIndex(e)+1;if(t.throwOnLimitExceeded&&"number"==typeof t.arrayLimit&&o>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");e[o]=r,markConflict(e,o)}else{if(t&&t.strictMerge){var a=limitedPair(e,r,t);return isArray(a)?markConflict(a,1):a}(t&&(t.plainObjects||t.allowPrototypes)||!has.call(Object.prototype,r))&&(e[r]=!0)}}return e}if(!e||"object"!=typeof e){if(isOverflow(r)){for(var l=Object.keys(r),f=t&&t.plainObjects?{__proto__:null,0:e}:{0:e},c=0;c<l.length;c++)f[parseInt(l[c],10)+1]=r[l[c]];return markOverflow(f,getMaxIndex(r)+1)}var s=[e].concat(r);if(t&&"number"==typeof t.arrayLimit&&s.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return markOverflow(arrayToObject(s,t),s.length-1)}return s}var y=e;if(isArray(e)&&!isArray(r)&&(y=arrayToObject(e,t),isConflict(e)&&markConflict(y,e.length-1)),isArray(e)&&isArray(r)){if(r.forEach(function(r,n){if(has.call(e,n)){var i=e[n];i&&"object"==typeof i&&r&&"object"==typeof r?e[n]=merge(i,r,t):e[e.length]=r}else e[n]=r}),t&&"number"==typeof t.arrayLimit&&countElements(e)>t.arrayLimit){if(t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return markOverflow(arrayToObject(e,t),e.length-1)}return e}return Object.keys(r).reduce(function(e,n){var i=r[n];if(has.call(e,n)?setProperty(e,n,merge(e[n],i,t)):setProperty(e,n,i),isOverflow(r)&&!isOverflow(e)&&markOverflow(e,maxNumericIndex(e,getMaxIndex(r))),isOverflow(e)){var o=parseInt(n,10);String(o)===n&&o>=0&&o>getMaxIndex(e)&&setMaxIndex(e,o)}if(isConflict(e)){var a=parseInt(n,10);String(a)===n&&a>getConflictIndex(e)&&markConflict(e,a)}return e},y)},assign=function assignSingleSource(e,r){return Object.keys(r).reduce(function(e,t){return setProperty(e,t,r[t]),e},e)},decode=function(e,r,t){if("string"==typeof e&&-1===e.indexOf("%"))return-1===e.indexOf("+")?e:e.replace(/\+/g," ");var n=e.replace(/\+/g," ");if("iso-8859-1"===t)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},hasToPrimitive="function"==typeof Symbol&&"symbol"==typeof Symbol.toPrimitive,arrayJoin=Array.prototype.join,arrayToString=Array.prototype.toString,objectToString=Object.prototype.toString,toCoercible=function toCoercible(e,r){if(!e||"object"!=typeof e&&"function"!=typeof e)return e;if(hasToPrimitive&&null!=e[Symbol.toPrimitive])return e;if(isArray(e)&&e.toString===arrayToString&&e.join===arrayJoin){var t,n=r||getSideChannel();if(n.has(e))return"";n.set(e,!0);for(var i=0;i<e.length;i+=1){var o=e[i],a=toCoercible(o,n);if(!t&&a!==o){t=[];for(var l=0;l<i;l+=1)t[l]=e[l]}t&&(t[i]=a)}return n.delete(e),t||e}if("function"==typeof e.toString)return e;var f=e.valueOf;if("function"==typeof f){var c=f.call(e);if(!c||"object"!=typeof c&&"function"!=typeof c)return String(c)}return objectToString.call(e)},limit=1024,encode=function encode(e,r,t,n,i){if(0===e.length)return e;var o=e;if("symbol"==typeof e?o=Symbol.prototype.toString.call(e):"string"!=typeof e&&(o=String(toCoercible(e))),"iso-8859-1"===t)return escape(o).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}).replace(/\+/g,"%2B");for(var a="",l=0;l<o.length;l+=limit){var f=o.length>=limit?o.slice(l,l+limit):o;if(l+limit<o.length){var c=f.charCodeAt(f.length-1);c>=55296&&c<=56319&&(f=f.slice(0,-1),l-=1)}for(var s=[],y=0;y<f.length;++y){var u=f.charCodeAt(y);if(45===u||46===u||95===u||126===u&&i!==formats.WHATWG||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===formats.RFC1738&&(40===u||41===u)||i===formats.WHATWG&&42===u)s[s.length]=f.charAt(y);else if(u<128)s[s.length]=hexTable[u];else if(u<2048)s[s.length]=hexTable[192|u>>6]+hexTable[128|63&u];else if(u<55296||u>=57344)s[s.length]=hexTable[224|u>>12]+hexTable[128|u>>6&63]+hexTable[128|63&u];else{var m=f.charCodeAt(y+1);u<=56319&&m>=56320&&m<=57343?(y+=1,u=65536+((1023&u)<<10|1023&m),s[s.length]=hexTable[240|u>>18]+hexTable[128|u>>12&63]+hexTable[128|u>>6&63]+hexTable[128|63&u]):s[s.length]="%EF%BF%BD"}}a+=s.join("")}return a},compact=function compact(e){for(var r=[{obj:{o:e},prop:"o"}],t=getSideChannel(),n=0;n<r.length;++n)for(var i=r[n],o=i.obj[i.prop],a=Object.keys(o),l=0;l<a.length;++l){var f=a[l],c=o[f];"object"!=typeof c||null===c||t.has(c)||(r[r.length]={obj:o,prop:f},t.set(c,!0))}return compactQueue(r),e},isRegExp=function isRegExp(e){return"[object RegExp]"===Object.prototype.toString.call(e)},isBuffer=function isBuffer(e){return!(!e||"object"!=typeof e||!e.constructor||"function"!=typeof e.constructor.isBuffer||!e.constructor.isBuffer(e))},combine=function combine(e,r,t,n,i){if(isOverflow(e)){if(i)throw new RangeError("Array limit exceeded. Only "+t+" element"+(1===t?"":"s")+" allowed in an array.");for(var o=isArray(r)?r:[r],a=getMaxIndex(e),l=0;l<o.length;++l)e[a+=1]=o[l];return setMaxIndex(e,a),e}var f=[].concat(e,r);if(f.length>t){if(i)throw new RangeError("Array limit exceeded. Only "+t+" element"+(1===t?"":"s")+" allowed in an array.");return markOverflow(arrayToObject(f,{plainObjects:n}),f.length-1)}return f},maybeMap=function maybeMap(e,r){if(isArray(e)){for(var t=[],n=0;n<e.length;n+=1)t[t.length]=r(e[n]);return t}return r(e)};module.exports={/* common-shake removed: arrayToObject:arrayToObject *//* common-shake removed: assign:assign */combine:combine,compact:compact,decode:decode,encode:encode,isBuffer:isBuffer,isOverflow:isOverflow,isRegExp:isRegExp,markOverflow:markOverflow,maybeMap:maybeMap,merge:merge,setProperty:setProperty,toCoercible:toCoercible};
|
|
15
15
|
|
|
16
16
|
},{"1":1,"14":14,"46":46}],46:[function(require,module,exports){
|
|
17
17
|
"use strict";var $TypeError=require(20),inspect=require(42),getSideChannelList=require(43),getSideChannelMap=require(44),getSideChannelWeakMap=require(45),makeChannel=getSideChannelWeakMap||getSideChannelMap||getSideChannelList;module.exports=function getSideChannel(){var e,n={assert:function(e){if(!n.has(e)){var t=e&&Object(e)===e?"the given object key":inspect(e);throw new $TypeError("Side channel does not contain "+t)}},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,t){e||(e=makeChannel()),e.set(n,t)}};return n};
|
|
@@ -81,20 +81,20 @@
|
|
|
81
81
|
},{}],35:[function(require,module,exports){
|
|
82
82
|
"use strict";module.exports=Math.floor;
|
|
83
83
|
|
|
84
|
-
},{}],34:[function(require,module,exports){
|
|
85
|
-
"use strict";module.exports=Math.abs;
|
|
86
|
-
|
|
87
84
|
},{}],37:[function(require,module,exports){
|
|
88
85
|
"use strict";module.exports=Math.max;
|
|
89
86
|
|
|
90
|
-
},{}],
|
|
91
|
-
"use strict";module.exports=Math.
|
|
87
|
+
},{}],38:[function(require,module,exports){
|
|
88
|
+
"use strict";module.exports=Math.min;
|
|
89
|
+
|
|
90
|
+
},{}],34:[function(require,module,exports){
|
|
91
|
+
"use strict";module.exports=Math.abs;
|
|
92
92
|
|
|
93
93
|
},{}],40:[function(require,module,exports){
|
|
94
94
|
"use strict";module.exports=Math.round;
|
|
95
95
|
|
|
96
|
-
},{}],
|
|
97
|
-
"use strict";module.exports=Math.
|
|
96
|
+
},{}],39:[function(require,module,exports){
|
|
97
|
+
"use strict";module.exports=Math.pow;
|
|
98
98
|
|
|
99
99
|
},{}],27:[function(require,module,exports){
|
|
100
100
|
"use strict";module.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null;
|
|
@@ -105,13 +105,13 @@
|
|
|
105
105
|
},{"22":22}],41:[function(require,module,exports){
|
|
106
106
|
"use strict";var $isNaN=require(36);module.exports=function sign(i){return $isNaN(i)||0===i?i:i<0?-1:1};
|
|
107
107
|
|
|
108
|
-
},{"36":36}],
|
|
109
|
-
"use strict";var call=Function.prototype.call,$hasOwn=Object.prototype.hasOwnProperty,bind=require(24);module.exports=bind.call(call,$hasOwn);
|
|
110
|
-
|
|
111
|
-
},{"24":24}],31:[function(require,module,exports){
|
|
108
|
+
},{"36":36}],31:[function(require,module,exports){
|
|
112
109
|
"use strict";var origSymbol="undefined"!=typeof Symbol&&Symbol,hasSymbolSham=require(32);module.exports=function hasNativeSymbols(){return"function"==typeof origSymbol&&"function"==typeof Symbol&&"symbol"==typeof origSymbol("foo")&&"symbol"==typeof Symbol("bar")&&hasSymbolSham()};
|
|
113
110
|
|
|
114
|
-
},{"32":32}],
|
|
111
|
+
},{"32":32}],33:[function(require,module,exports){
|
|
112
|
+
"use strict";var call=Function.prototype.call,$hasOwn=Object.prototype.hasOwnProperty,bind=require(24);module.exports=bind.call(call,$hasOwn);
|
|
113
|
+
|
|
114
|
+
},{"24":24}],28:[function(require,module,exports){
|
|
115
115
|
"use strict";var reflectGetProto=require(27),originalGetProto=require(26),getDunderProto=require(13);module.exports=reflectGetProto?function getProto(t){return reflectGetProto(t)}:originalGetProto?function getProto(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return originalGetProto(t)}:getDunderProto?function getProto(t){return getDunderProto(t)}:null;
|
|
116
116
|
|
|
117
117
|
},{"13":13,"26":26,"27":27}],29:[function(require,module,exports){
|
|
@@ -1,57 +1,68 @@
|
|
|
1
1
|
import ljharbConfig from '@ljharb/eslint-config/flat';
|
|
2
|
+
import latest from '@ljharb/eslint-config/flat/node/latest';
|
|
2
3
|
|
|
3
4
|
export default [
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
{
|
|
6
|
+
ignores: ['dist/'],
|
|
7
|
+
},
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
...ljharbConfig,
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
11
|
+
{
|
|
12
|
+
rules: {
|
|
13
|
+
complexity: 'off',
|
|
14
|
+
'consistent-return': 'warn',
|
|
15
|
+
eqeqeq: ['error', 'allow-null'],
|
|
16
|
+
'func-name-matching': 'off',
|
|
17
|
+
'id-length': [
|
|
18
|
+
'error',
|
|
19
|
+
{
|
|
20
|
+
max: 25,
|
|
21
|
+
min: 1,
|
|
22
|
+
properties: 'never',
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
indent: ['error', 4],
|
|
26
|
+
'max-lines': 'off',
|
|
27
|
+
'max-lines-per-function': [
|
|
28
|
+
'error',
|
|
29
|
+
{ max: 150 },
|
|
30
|
+
],
|
|
31
|
+
'max-params': ['error', 20],
|
|
32
|
+
'max-statements': ['error', 100],
|
|
33
|
+
'multiline-comment-style': 'off',
|
|
34
|
+
'no-continue': 'warn',
|
|
35
|
+
'no-magic-numbers': 'off',
|
|
36
|
+
'no-restricted-syntax': [
|
|
37
|
+
'error',
|
|
38
|
+
'BreakStatement',
|
|
39
|
+
'DebuggerStatement',
|
|
40
|
+
'ForInStatement',
|
|
41
|
+
'LabeledStatement',
|
|
42
|
+
'WithStatement',
|
|
43
|
+
],
|
|
44
|
+
},
|
|
45
|
+
},
|
|
45
46
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
47
|
+
{
|
|
48
|
+
files: ['test/**'],
|
|
49
|
+
rules: {
|
|
50
|
+
'function-paren-newline': 'off',
|
|
51
|
+
'max-lines-per-function': 'off',
|
|
52
|
+
'max-statements': 'off',
|
|
53
|
+
'no-buffer-constructor': 'off',
|
|
54
|
+
'no-extend-native': 'off',
|
|
55
|
+
'no-throw-literal': 'off',
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
|
|
59
|
+
...latest.map((x) => ({
|
|
60
|
+
files: ['README.md/**'],
|
|
61
|
+
...x,
|
|
62
|
+
})),
|
|
63
|
+
|
|
64
|
+
...ljharbConfig.map((x) => ({
|
|
65
|
+
files: ['eslint.config.mjs'],
|
|
66
|
+
...x,
|
|
67
|
+
})),
|
|
57
68
|
];
|
|
@@ -5,7 +5,8 @@ var percentTwenties = /%20/g;
|
|
|
5
5
|
|
|
6
6
|
var Format = {
|
|
7
7
|
RFC1738: 'RFC1738',
|
|
8
|
-
RFC3986: 'RFC3986'
|
|
8
|
+
RFC3986: 'RFC3986',
|
|
9
|
+
WHATWG: 'WHATWG'
|
|
9
10
|
};
|
|
10
11
|
|
|
11
12
|
module.exports = {
|
|
@@ -16,8 +17,12 @@ module.exports = {
|
|
|
16
17
|
},
|
|
17
18
|
RFC3986: function (value) {
|
|
18
19
|
return String(value);
|
|
20
|
+
},
|
|
21
|
+
WHATWG: function (value) {
|
|
22
|
+
return replace.call(value, percentTwenties, '+');
|
|
19
23
|
}
|
|
20
24
|
},
|
|
21
25
|
RFC1738: Format.RFC1738,
|
|
22
|
-
RFC3986: Format.RFC3986
|
|
26
|
+
RFC3986: Format.RFC3986,
|
|
27
|
+
WHATWG: Format.WHATWG
|
|
23
28
|
};
|
|
@@ -1,9 +1,61 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var getSideChannel = require('side-channel');
|
|
3
4
|
var utils = require('./utils');
|
|
4
5
|
|
|
5
6
|
var has = Object.prototype.hasOwnProperty;
|
|
6
7
|
var isArray = Array.isArray;
|
|
8
|
+
var getPrototypeOf = Object.getPrototypeOf;
|
|
9
|
+
var fromCharCode = String.fromCharCode;
|
|
10
|
+
|
|
11
|
+
var isPlainContainer = function isPlainContainer(value) {
|
|
12
|
+
if (!value || typeof value !== 'object') {
|
|
13
|
+
return false;
|
|
14
|
+
}
|
|
15
|
+
if (isArray(value)) {
|
|
16
|
+
return true;
|
|
17
|
+
}
|
|
18
|
+
var proto = getPrototypeOf(value);
|
|
19
|
+
return proto === Object.prototype || proto === null;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
var emptyCopyOf = function emptyCopyOf(value) {
|
|
23
|
+
if (isArray(value)) {
|
|
24
|
+
var arr = [];
|
|
25
|
+
arr.length = value.length;
|
|
26
|
+
return arr;
|
|
27
|
+
}
|
|
28
|
+
return getPrototypeOf(value) === null ? { __proto__: null } : {};
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
// `merge` and `compact` modify the containers they are given, so copy the caller's arrays and plain objects first
|
|
32
|
+
var copyInput = function copyInput(input) {
|
|
33
|
+
var copies = getSideChannel();
|
|
34
|
+
var result = {};
|
|
35
|
+
var queue = [{ source: input, target: result }];
|
|
36
|
+
|
|
37
|
+
for (var i = 0; i < queue.length; ++i) {
|
|
38
|
+
var source = queue[i].source;
|
|
39
|
+
var target = queue[i].target;
|
|
40
|
+
var keys = Object.keys(source);
|
|
41
|
+
for (var j = 0; j < keys.length; ++j) {
|
|
42
|
+
var value = source[keys[j]];
|
|
43
|
+
// `target[key] =` would invoke the `__proto__` setter. `setProperty` stores that key as data.
|
|
44
|
+
if (isPlainContainer(value)) {
|
|
45
|
+
if (!copies.has(value)) {
|
|
46
|
+
var copy = emptyCopyOf(value);
|
|
47
|
+
copies.set(value, copy);
|
|
48
|
+
queue[queue.length] = { source: value, target: copy };
|
|
49
|
+
}
|
|
50
|
+
utils.setProperty(target, keys[j], copies.get(value));
|
|
51
|
+
} else {
|
|
52
|
+
utils.setProperty(target, keys[j], value);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
return result;
|
|
58
|
+
};
|
|
7
59
|
|
|
8
60
|
var defaults = {
|
|
9
61
|
allowDots: false,
|
|
@@ -32,7 +84,13 @@ var defaults = {
|
|
|
32
84
|
|
|
33
85
|
var interpretNumericEntities = function (str) {
|
|
34
86
|
return str.replace(/&#(\d+);/g, function ($0, numberStr) {
|
|
35
|
-
|
|
87
|
+
var c = parseInt(numberStr, 10);
|
|
88
|
+
if (c > 0xFFFF && c <= 0x10FFFF) {
|
|
89
|
+
// `String.fromCodePoint` is not available in every supported engine, so build the surrogate pair by hand
|
|
90
|
+
c -= 0x10000;
|
|
91
|
+
return fromCharCode(0xD800 | (c >> 10), 0xDC00 | (c & 0x3FF));
|
|
92
|
+
}
|
|
93
|
+
return fromCharCode(c);
|
|
36
94
|
});
|
|
37
95
|
};
|
|
38
96
|
|
|
@@ -52,7 +110,11 @@ var parseArrayValue = function (val, options, currentArrayLength) {
|
|
|
52
110
|
return val.split(',');
|
|
53
111
|
}
|
|
54
112
|
|
|
55
|
-
if (
|
|
113
|
+
if (
|
|
114
|
+
options.throwOnLimitExceeded
|
|
115
|
+
&& currentArrayLength >= options.arrayLimit
|
|
116
|
+
&& currentArrayLength > 0
|
|
117
|
+
) {
|
|
56
118
|
throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');
|
|
57
119
|
}
|
|
58
120
|
|
|
@@ -112,6 +174,9 @@ var parseValues = function parseQueryStringValues(str, options) {
|
|
|
112
174
|
var bracketEqualsPos = part.indexOf(']=');
|
|
113
175
|
var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
|
|
114
176
|
|
|
177
|
+
// `[]` belongs to the key, so look for it at the split point, not anywhere in the part
|
|
178
|
+
var isEmptyBracketKey = pos > 1 && part.slice(pos - 2, pos) === '[]';
|
|
179
|
+
|
|
115
180
|
var key;
|
|
116
181
|
var val;
|
|
117
182
|
if (pos === -1) {
|
|
@@ -125,7 +190,7 @@ var parseValues = function parseQueryStringValues(str, options) {
|
|
|
125
190
|
parseArrayValue(
|
|
126
191
|
part.slice(pos + 1),
|
|
127
192
|
options,
|
|
128
|
-
isArray(obj[key]) ? obj[key].length : 0
|
|
193
|
+
isArray(obj[key]) && (options.duplicates === 'combine' || isEmptyBracketKey) ? obj[key].length : 0
|
|
129
194
|
),
|
|
130
195
|
function (encodedVal) {
|
|
131
196
|
return options.decoder(encodedVal, defaults.decoder, charset, 'value');
|
|
@@ -135,10 +200,12 @@ var parseValues = function parseQueryStringValues(str, options) {
|
|
|
135
200
|
}
|
|
136
201
|
|
|
137
202
|
if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
|
|
138
|
-
val =
|
|
203
|
+
val = utils.maybeMap(val, function (value) {
|
|
204
|
+
return value ? interpretNumericEntities(String(value)) : value;
|
|
205
|
+
});
|
|
139
206
|
}
|
|
140
207
|
|
|
141
|
-
if (
|
|
208
|
+
if (isEmptyBracketKey) {
|
|
142
209
|
val = isArray(val) ? [val] : val;
|
|
143
210
|
}
|
|
144
211
|
|
|
@@ -148,7 +215,7 @@ var parseValues = function parseQueryStringValues(str, options) {
|
|
|
148
215
|
|
|
149
216
|
if (key !== null) {
|
|
150
217
|
var existing = has.call(obj, key);
|
|
151
|
-
if (existing && (options.duplicates === 'combine' ||
|
|
218
|
+
if (existing && (options.duplicates === 'combine' || isEmptyBracketKey)) {
|
|
152
219
|
obj[key] = utils.combine(
|
|
153
220
|
obj[key],
|
|
154
221
|
val,
|
|
@@ -165,6 +232,10 @@ var parseValues = function parseQueryStringValues(str, options) {
|
|
|
165
232
|
return obj;
|
|
166
233
|
};
|
|
167
234
|
|
|
235
|
+
var stripWrappingBrackets = function stripWrappingBrackets(key) {
|
|
236
|
+
return key.charAt(0) === '[' && key.charAt(key.length - 1) === ']' ? key.slice(1, -1) : key;
|
|
237
|
+
};
|
|
238
|
+
|
|
168
239
|
var parseObject = function (chain, val, options, valuesParsed) {
|
|
169
240
|
var currentArrayLength = 0;
|
|
170
241
|
if (chain.length > 0 && chain[chain.length - 1] === '[]') {
|
|
@@ -195,8 +266,8 @@ var parseObject = function (chain, val, options, valuesParsed) {
|
|
|
195
266
|
}
|
|
196
267
|
} else {
|
|
197
268
|
obj = options.plainObjects ? { __proto__: null } : {};
|
|
198
|
-
var cleanRoot =
|
|
199
|
-
var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/
|
|
269
|
+
var cleanRoot = stripWrappingBrackets(root);
|
|
270
|
+
var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/gi, '.') : cleanRoot;
|
|
200
271
|
var index = parseInt(decodedRoot, 10);
|
|
201
272
|
var isValidArrayIndex = !isNaN(index)
|
|
202
273
|
&& root !== decodedRoot
|
|
@@ -204,7 +275,7 @@ var parseObject = function (chain, val, options, valuesParsed) {
|
|
|
204
275
|
&& index >= 0
|
|
205
276
|
&& options.parseArrays;
|
|
206
277
|
if (!options.parseArrays && decodedRoot === '') {
|
|
207
|
-
obj =
|
|
278
|
+
obj[0] = leaf;
|
|
208
279
|
} else if (isValidArrayIndex && index < options.arrayLimit) {
|
|
209
280
|
obj = [];
|
|
210
281
|
obj[index] = leaf;
|
|
@@ -224,14 +295,52 @@ var parseObject = function (chain, val, options, valuesParsed) {
|
|
|
224
295
|
return leaf;
|
|
225
296
|
};
|
|
226
297
|
|
|
298
|
+
// Behaves like `key.replace(/\.([^.[]+)/g, '[$1]')`, but only rewrites a dot
|
|
299
|
+
// that sits at bracket depth 0. A literal dot already inside a `[...]` segment
|
|
300
|
+
// is left untouched instead of corrupting the key (e.g. "outer[a.b]"). (#617)
|
|
301
|
+
var topLevelDotsToBrackets = function topLevelDotsToBrackets(key) {
|
|
302
|
+
var result = '';
|
|
303
|
+
var depth = 0;
|
|
304
|
+
for (var i = 0; i < key.length; i += 1) {
|
|
305
|
+
var cu = key.charCodeAt(i);
|
|
306
|
+
if (cu === 0x5B) { // '['
|
|
307
|
+
depth += 1;
|
|
308
|
+
result += '[';
|
|
309
|
+
} else if (cu === 0x5D) { // ']'
|
|
310
|
+
if (depth > 0) {
|
|
311
|
+
depth -= 1;
|
|
312
|
+
}
|
|
313
|
+
result += ']';
|
|
314
|
+
} else if (
|
|
315
|
+
cu === 0x2E // '.'
|
|
316
|
+
&& depth === 0
|
|
317
|
+
&& i + 1 < key.length
|
|
318
|
+
&& key.charCodeAt(i + 1) !== 0x2E // not another '.'
|
|
319
|
+
&& key.charCodeAt(i + 1) !== 0x5B // not '['
|
|
320
|
+
) {
|
|
321
|
+
var start = i + 1;
|
|
322
|
+
var j = start;
|
|
323
|
+
while (j < key.length && key.charCodeAt(j) !== 0x2E && key.charCodeAt(j) !== 0x5B) {
|
|
324
|
+
j += 1;
|
|
325
|
+
}
|
|
326
|
+
result += '[' + key.slice(start, j) + ']';
|
|
327
|
+
i = j - 1;
|
|
328
|
+
} else {
|
|
329
|
+
result += key.charAt(i);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
return result;
|
|
333
|
+
};
|
|
334
|
+
|
|
227
335
|
// Split a key like "a[b][c[]]" into ['a', '[b]', '[c[]]'] while preserving
|
|
228
336
|
// qs parse semantics for depth/prototype guards.
|
|
229
337
|
var splitKeyIntoSegments = function splitKeyIntoSegments(originalKey, options) {
|
|
230
|
-
var key = options.allowDots ? originalKey
|
|
338
|
+
var key = options.allowDots ? topLevelDotsToBrackets(originalKey) : originalKey;
|
|
231
339
|
|
|
232
340
|
// depth <= 0 keeps the whole key as one segment
|
|
233
341
|
if (options.depth <= 0) {
|
|
234
|
-
|
|
342
|
+
// `parseObject` strips one wrapping bracket pair, so guard the key it will store ("[toString]" -> "toString")
|
|
343
|
+
if (!options.plainObjects && has.call(Object.prototype, stripWrappingBrackets(key))) {
|
|
235
344
|
if (!options.allowPrototypes) {
|
|
236
345
|
return;
|
|
237
346
|
}
|
|
@@ -393,7 +502,7 @@ module.exports = function (str, opts) {
|
|
|
393
502
|
return options.plainObjects ? { __proto__: null } : {};
|
|
394
503
|
}
|
|
395
504
|
|
|
396
|
-
var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
|
|
505
|
+
var tempObj = typeof str === 'string' ? parseValues(str, options) : copyInput(str);
|
|
397
506
|
var obj = options.plainObjects ? { __proto__: null } : {};
|
|
398
507
|
|
|
399
508
|
// Iterate over the keys and setup the new object
|