@vxrn/query-string 1.1.319 → 1.1.321

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.
@@ -0,0 +1,37 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: !0 });
8
+ }, __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from == "object" || typeof from == "function")
10
+ for (let key of __getOwnPropNames(from))
11
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
+ var src_exports = {};
16
+ __export(src_exports, {
17
+ default: () => src_default,
18
+ parse: () => parse,
19
+ stringify: () => stringify
20
+ });
21
+ module.exports = __toCommonJS(src_exports);
22
+ const parse = (queryString) => {
23
+ const params = new URLSearchParams(queryString), result = {};
24
+ return params.forEach((value, key) => {
25
+ result[key] ? Array.isArray(result[key]) ? result[key].push(value) : result[key] = [result[key], value] : result[key] = value;
26
+ }), result;
27
+ }, stringify = (obj) => {
28
+ const params = new URLSearchParams();
29
+ return Object.entries(obj).forEach(([key, value]) => {
30
+ Array.isArray(value) ? value.forEach((v) => params.append(key, v)) : params.append(key, value);
31
+ }), params.toString();
32
+ };
33
+ var src_default = {
34
+ parse,
35
+ stringify
36
+ };
37
+ //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vxrn/query-string",
3
- "version": "1.1.319",
3
+ "version": "1.1.321",
4
4
  "sideEffects": false,
5
5
  "source": "src/index.ts",
6
6
  "types": "./types/index.d.ts",
@@ -33,7 +33,7 @@
33
33
  "query-string": "^9.1.0"
34
34
  },
35
35
  "devDependencies": {
36
- "@tamagui/build": "^1.115.0"
36
+ "@tamagui/build": "^1.116.4"
37
37
  },
38
38
  "publishConfig": {
39
39
  "access": "public"
@@ -1,40 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf,
6
- __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: !0
11
- });
12
- },
13
- __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
- get: () => from[key],
16
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
- });
18
- return to;
19
- },
20
- __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default")),
21
- __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
- // If the importer is in node compatibility mode or this is not an ESM
23
- // file that has been converted to a CommonJS file using a Babel-
24
- // compatible transform (i.e. "__esModule" has not been set), then set
25
- // "default" to the CommonJS "module.exports" for node compatibility.
26
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
27
- value: mod,
28
- enumerable: !0
29
- }) : target, mod)),
30
- __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
31
- value: !0
32
- }), mod);
33
- var index_native_exports = {};
34
- __export(index_native_exports, {
35
- default: () => index_native_default
36
- });
37
- module.exports = __toCommonJS(index_native_exports);
38
- var import_query_string = __toESM(require("query-string"));
39
- __reExport(index_native_exports, require("query-string"), module.exports);
40
- var index_native_default = import_query_string.default;
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.native.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAe;AAEf,iCAAc,yBAFd;AAIA,IAAO,uBAAQ,oBAAAA;",
5
- "names": ["qs"]
6
- }
File without changes