@vope/utils 1.6.0-bate.8 → 1.6.1

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.
Files changed (43) hide show
  1. package/dist/index.cjs.js +1275 -0
  2. package/dist/index.js +72 -1264
  3. package/dist/url/params.d.ts +2 -1
  4. package/dist/url/params.js +18 -0
  5. package/package.json +81 -80
  6. package/sub_storage/{offline.mjs → offline.cjs.js} +59 -27
  7. package/sub_storage/offline.js +27 -59
  8. package/sub_storage/package.json +2 -2
  9. package/dist/index.mjs +0 -73
  10. package/dist/url/params.mjs +0 -8
  11. /package/dist/{clamp.mjs → clamp.js} +0 -0
  12. /package/dist/{classnames.mjs → classnames.js} +0 -0
  13. /package/dist/compare/{version.mjs → version.js} +0 -0
  14. /package/dist/compare/{weak-equal.mjs → weak-equal.js} +0 -0
  15. /package/dist/convert/{json.mjs → json.js} +0 -0
  16. /package/dist/convert/{object.mjs → object.js} +0 -0
  17. /package/dist/convert/{strings.mjs → strings.js} +0 -0
  18. /package/dist/{desens.mjs → desens.js} +0 -0
  19. /package/dist/{encoding.mjs → encoding.js} +0 -0
  20. /package/dist/{input-regex.mjs → input-regex.js} +0 -0
  21. /package/dist/is/{class.mjs → class.js} +0 -0
  22. /package/dist/is/{empty.mjs → empty.js} +0 -0
  23. /package/dist/is/{key.mjs → key.js} +0 -0
  24. /package/dist/is/{null.mjs → null.js} +0 -0
  25. /package/dist/load/{image.mjs → image.js} +0 -0
  26. /package/dist/memory/{basic.mjs → basic.js} +0 -0
  27. /package/dist/memory/{list.mjs → list.js} +0 -0
  28. /package/dist/memory/{power.mjs → power.js} +0 -0
  29. /package/dist/memory/{simple.mjs → simple.js} +0 -0
  30. /package/dist/{neo4j-anchors.mjs → neo4j-anchors.js} +0 -0
  31. /package/dist/{neo4j.mjs → neo4j.js} +0 -0
  32. /package/dist/{once.mjs → once.js} +0 -0
  33. /package/dist/parse/{num.mjs → num.js} +0 -0
  34. /package/dist/power/{decon.mjs → decon.js} +0 -0
  35. /package/dist/rotate/{angle.mjs → angle.js} +0 -0
  36. /package/dist/rotate/{rad.mjs → rad.js} +0 -0
  37. /package/dist/serialize/{url-params.mjs → url-params.js} +0 -0
  38. /package/dist/style/{css.mjs → css.js} +0 -0
  39. /package/dist/{subscriber.mjs → subscriber.js} +0 -0
  40. /package/dist/table/{flex.mjs → flex.js} +0 -0
  41. /package/dist/{union.mjs → union.js} +0 -0
  42. /package/dist/url/{join.mjs → join.js} +0 -0
  43. /package/dist/{wait.mjs → wait.js} +0 -0
@@ -4,5 +4,6 @@ import { Serializes } from '../serialize/url-params';
4
4
  * @param url
5
5
  * @param params 需要让url携带的参数
6
6
  * @param serializes 转换套件
7
+ * @description 未设置转换套件时使用URLSearchParams的默认处理方式
7
8
  */
8
- export declare const connectURLParams: <T extends object>(url: string, params: T, serializes: Serializes<T>) => string;
9
+ export declare const connectURLParams: <T extends object>(url: string, params: T, serializes?: Serializes<T>) => string;
@@ -0,0 +1,18 @@
1
+ import { flatURLParams } from "../serialize/url-params";
2
+ const rasterize = (data) => {
3
+ const params = new URLSearchParams();
4
+ for (const key in data) {
5
+ params.append(
6
+ key,
7
+ data[key]
8
+ );
9
+ }
10
+ return params.toString();
11
+ };
12
+ const connectURLParams = (url, params, serializes) => {
13
+ const query = serializes ? flatURLParams(params, serializes) : rasterize(params);
14
+ return query ? url.includes("?") ? url + "&" + query : url + "?" + query : url;
15
+ };
16
+ export {
17
+ connectURLParams
18
+ };
package/package.json CHANGED
@@ -1,80 +1,81 @@
1
- {
2
- "name": "@vope/utils",
3
- "version": "1.6.0-bate.8",
4
- "description": "",
5
- "publishConfig": {
6
- "access": "public",
7
- "registry": "https://registry.npmjs.org/"
8
- },
9
- "types": "./dist/index.d.ts",
10
- "typings": "./dist/index.d.ts",
11
- "module": "./dist/index.mjs",
12
- "main": "./dist/index.js",
13
- "scripts": {
14
- "start": "esbuild ./start.ts --outfile=start.cjs --format=cjs & node ./start.cjs",
15
- "poststart": "esbuild ./pre.ts --outfile=pre.cjs --format=cjs & node ./pre.cjs",
16
- "build": "npm run start & node ./build.cjs",
17
- "premocha": "node ./build.cjs --type=test",
18
- "mocha": "mocha __tests/**/*.js",
19
- "test": "npm run mocha",
20
- "prepublishOnly": "npm run build & npm run test",
21
- "debug": "npm run start & npm run premocha"
22
- },
23
- "exports": {
24
- ".": {
25
- "types": "./dist/index.d.ts",
26
- "import": "./dist/index.mjs",
27
- "require": "./dist/index.js"
28
- },
29
- "./storage": {
30
- "types": "./sub_storage/offline.d.ts",
31
- "import": "./sub_storage/offline.mjs",
32
- "require": "./sub_storage/offline.js"
33
- }
34
- },
35
- "author": "vope",
36
- "license": "ISC",
37
- "files": [
38
- "dist",
39
- "sub_storage"
40
- ],
41
- "devDependencies": {
42
- "@babel/parser": "^7.26.9",
43
- "@babel/traverse": "^7.26.9",
44
- "@babel/types": "^7.26.9",
45
- "@rollup/plugin-alias": "^5.1.1",
46
- "@rollup/plugin-commonjs": "^28.0.2",
47
- "@rollup/plugin-json": "^6.1.0",
48
- "@rollup/plugin-node-resolve": "^16.0.0",
49
- "@rollup/plugin-typescript": "^12.1.2",
50
- "@types/babel__traverse": "^7.20.6",
51
- "@types/mocha": "^10.0.6",
52
- "@types/node": "^22.13.5",
53
- "@types/sm-crypto": "^0.3.4",
54
- "esbuild": "^0.25.0",
55
- "glob": "^11.0.1",
56
- "iconv-lite": "^0.6.3",
57
- "mocha": "^10.2.0",
58
- "puppeteer": "^24.3.0",
59
- "rimraf": "^5.0.5",
60
- "rollup": "^4.34.8",
61
- "tslib": "^2.8.1",
62
- "typescript": "^5.7.3",
63
- "uuid": "^11.1.0"
64
- },
65
- "dependencies": {
66
- "@type-challenges/utils": "^0.1.1",
67
- "@types/lodash-es": "^4.17.12",
68
- "@vope/types": "^1.1.1",
69
- "csstype": "^3.1.3",
70
- "localforage": "^1.10.0",
71
- "lodash-es": "^4.17.21",
72
- "sm-crypto": "^0.3.13"
73
- },
74
- "pnpm": {
75
- "onlyBuiltDependencies": [
76
- "esbuild",
77
- "puppeteer"
78
- ]
79
- }
80
- }
1
+ {
2
+ "name": "@vope/utils",
3
+ "version": "1.6.1",
4
+ "description": "",
5
+ "publishConfig": {
6
+ "access": "public",
7
+ "registry": "https://registry.npmjs.org/"
8
+ },
9
+ "types": "./dist/index.d.ts",
10
+ "typings": "./dist/index.d.ts",
11
+ "module": "./dist/index.js",
12
+ "main": "./dist/index.js",
13
+ "scripts": {
14
+ "start": "esbuild ./start.ts --outfile=start.cjs --format=cjs & node ./start.cjs",
15
+ "poststart": "esbuild ./pre.ts --outfile=pre.cjs --format=cjs & node ./pre.cjs",
16
+ "build": "npm run start & node ./build.cjs",
17
+ "premocha": "node ./build.cjs --type=test",
18
+ "mocha": "mocha __tests/**/*.js",
19
+ "test": "npm run mocha",
20
+ "prepublishOnly": "npm run build & npm run test",
21
+ "debug": "npm run start & npm run premocha",
22
+ "clean": "rimraf start.cjs pre.cjs build.cjs src/index.ts dist/ __tests/ __examples/ sub_storage/"
23
+ },
24
+ "exports": {
25
+ ".": {
26
+ "types": "./dist/index.d.ts",
27
+ "import": "./dist/index.js",
28
+ "require": "./dist/index.cjs.js"
29
+ },
30
+ "./storage": {
31
+ "types": "./sub_storage/offline.d.ts",
32
+ "import": "./sub_storage/offline.js",
33
+ "require": "./sub_storage/offline.cjs.js"
34
+ }
35
+ },
36
+ "author": "vope",
37
+ "license": "ISC",
38
+ "files": [
39
+ "dist",
40
+ "sub_storage"
41
+ ],
42
+ "devDependencies": {
43
+ "@babel/parser": "^7.26.9",
44
+ "@babel/traverse": "^7.26.9",
45
+ "@babel/types": "^7.26.9",
46
+ "@rollup/plugin-alias": "^5.1.1",
47
+ "@rollup/plugin-commonjs": "^28.0.2",
48
+ "@rollup/plugin-json": "^6.1.0",
49
+ "@rollup/plugin-node-resolve": "^16.0.0",
50
+ "@rollup/plugin-typescript": "^12.1.2",
51
+ "@types/babel__traverse": "^7.20.6",
52
+ "@types/mocha": "^10.0.6",
53
+ "@types/node": "^22.13.5",
54
+ "@types/sm-crypto": "^0.3.4",
55
+ "esbuild": "^0.25.0",
56
+ "glob": "^11.0.1",
57
+ "iconv-lite": "^0.6.3",
58
+ "mocha": "^10.2.0",
59
+ "puppeteer": "^24.3.0",
60
+ "rimraf": "^5.0.5",
61
+ "rollup": "^4.34.8",
62
+ "tslib": "^2.8.1",
63
+ "typescript": "^5.7.3",
64
+ "uuid": "^11.1.0"
65
+ },
66
+ "dependencies": {
67
+ "@type-challenges/utils": "^0.1.1",
68
+ "@types/lodash-es": "^4.17.12",
69
+ "@vope/types": "^1.1.1",
70
+ "csstype": "^3.1.3",
71
+ "localforage": "^1.10.0",
72
+ "lodash-es": "^4.17.21",
73
+ "sm-crypto": "^0.3.13"
74
+ },
75
+ "pnpm": {
76
+ "onlyBuiltDependencies": [
77
+ "esbuild",
78
+ "puppeteer"
79
+ ]
80
+ }
81
+ }
@@ -1,17 +1,52 @@
1
- import localforage from "localforage";
2
- import { isString } from "lodash-es";
3
- import { sm4 } from "sm-crypto";
4
- const NAME = "@vope/utils";
5
- const PREFIX = NAME + "_";
6
- const key = [25, 144, 1, 32, 25, 135, 6, 40, 32, 23, 18, 19, 32, 36, 9, 5];
7
- const iv = [182, 59, 9, 29, 86, 64, 118, 111, 112, 101, 47, 117, 116, 105, 108, 115];
8
- const config = {
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key2 of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key2) && key2 !== except)
16
+ __defProp(to, key2, { get: () => from[key2], enumerable: !(desc = __getOwnPropDesc(from, key2)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/storage/offline.ts
31
+ var offline_exports = {};
32
+ __export(offline_exports, {
33
+ OfflineStorage: () => OfflineStorage
34
+ });
35
+ module.exports = __toCommonJS(offline_exports);
36
+ var import_localforage = __toESM(require("localforage"));
37
+ var import_lodash_es = require("lodash-es");
38
+ var import_sm_crypto = require("sm-crypto");
39
+ var NAME = "@vope/utils";
40
+ var PREFIX = NAME + "_";
41
+ var key = [25, 144, 1, 32, 25, 135, 6, 40, 32, 23, 18, 19, 32, 36, 9, 5];
42
+ var iv = [182, 59, 9, 29, 86, 64, 118, 111, 112, 101, 47, 117, 116, 105, 108, 115];
43
+ var config = {
9
44
  output: "string",
10
45
  mode: "cbc",
11
46
  iv
12
47
  };
13
- const HEADER = "." + sm4.encrypt(NAME, key, config);
14
- const encrypt = (data) => {
48
+ var HEADER = "." + import_sm_crypto.sm4.encrypt(NAME, key, config);
49
+ var encrypt = (data) => {
15
50
  let text = "";
16
51
  for (const key2 in data) {
17
52
  const value = data[key2];
@@ -19,13 +54,13 @@ const encrypt = (data) => {
19
54
  text && (text += "&");
20
55
  text += key2 + ":" + value;
21
56
  }
22
- return sm4.encrypt(text, key, config);
57
+ return import_sm_crypto.sm4.encrypt(text, key, config);
23
58
  };
24
- const decrypt = (text) => {
59
+ var decrypt = (text) => {
25
60
  const data = {};
26
61
  let value;
27
62
  try {
28
- value = sm4.decrypt(text, key, config);
63
+ value = import_sm_crypto.sm4.decrypt(text, key, config);
29
64
  } catch {
30
65
  value = "";
31
66
  }
@@ -39,21 +74,21 @@ const decrypt = (text) => {
39
74
  });
40
75
  return data;
41
76
  };
42
- const structKey = (index) => index.toString(16).padStart(8, "0");
43
- const reductKey = (key2) => parseInt(key2, 16);
44
- const MESSAGES = {
77
+ var structKey = (index) => index.toString(16).padStart(8, "0");
78
+ var reductKey = (key2) => parseInt(key2, 16);
79
+ var MESSAGES = {
45
80
  mount: "Please wait for the mounting to complete",
46
81
  auth: "Unauthorized operation",
47
82
  push: "Cannot add data to expired databases",
48
83
  update: "Cannot update data to expired databases",
49
84
  get: "Cannot get data from expired databases"
50
85
  };
51
- const createInstance = (name, version = 2) => localforage.createInstance({
52
- driver: localforage.INDEXEDDB,
86
+ var createInstance = (name, version = 2) => import_localforage.default.createInstance({
87
+ driver: import_localforage.default.INDEXEDDB,
53
88
  name,
54
89
  version
55
90
  });
56
- class OfflineStorage {
91
+ var OfflineStorage = class _OfflineStorage {
57
92
  #forage;
58
93
  #expire;
59
94
  #auth = false;
@@ -73,7 +108,7 @@ class OfflineStorage {
73
108
  token: newToken,
74
109
  crypto
75
110
  }) {
76
- const forage = this.#forage = createInstance(sm4.encrypt(PREFIX + name, key, config));
111
+ const forage = this.#forage = createInstance(import_sm_crypto.sm4.encrypt(PREFIX + name, key, config));
77
112
  this.#mount = new Promise(async (resolve) => {
78
113
  const keys = await forage.keys().then((keys2) => keys2).catch(() => []);
79
114
  let size = 0;
@@ -175,13 +210,13 @@ class OfflineStorage {
175
210
  if (e) throw e;
176
211
  });
177
212
  this.#size = 0;
178
- await localforage.dropInstance({
213
+ await import_localforage.default.dropInstance({
179
214
  name: this.#forage.config().name
180
215
  });
181
216
  }
182
217
  static default(options) {
183
- isString(options) && (options = { name: options });
184
- return new OfflineStorage({
218
+ (0, import_lodash_es.isString)(options) && (options = { name: options });
219
+ return new _OfflineStorage({
185
220
  ...options,
186
221
  crypto: {
187
222
  encrypt(plain) {
@@ -201,7 +236,7 @@ class OfflineStorage {
201
236
  if (name === void 0) continue;
202
237
  let text;
203
238
  try {
204
- text = sm4.decrypt(name, key, config);
239
+ text = import_sm_crypto.sm4.decrypt(name, key, config);
205
240
  } catch {
206
241
  continue;
207
242
  }
@@ -217,7 +252,4 @@ class OfflineStorage {
217
252
  }
218
253
  await Promise.all(tasks);
219
254
  }
220
- }
221
- export {
222
- OfflineStorage
223
255
  };
@@ -1,52 +1,17 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key2 of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key2) && key2 !== except)
16
- __defProp(to, key2, { get: () => from[key2], enumerable: !(desc = __getOwnPropDesc(from, key2)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // src/storage/offline.ts
31
- var offline_exports = {};
32
- __export(offline_exports, {
33
- OfflineStorage: () => OfflineStorage
34
- });
35
- module.exports = __toCommonJS(offline_exports);
36
- var import_localforage = __toESM(require("localforage"));
37
- var import_lodash_es = require("lodash-es");
38
- var import_sm_crypto = require("sm-crypto");
39
- var NAME = "@vope/utils";
40
- var PREFIX = NAME + "_";
41
- var key = [25, 144, 1, 32, 25, 135, 6, 40, 32, 23, 18, 19, 32, 36, 9, 5];
42
- var iv = [182, 59, 9, 29, 86, 64, 118, 111, 112, 101, 47, 117, 116, 105, 108, 115];
43
- var config = {
1
+ import localforage from "localforage";
2
+ import { isString } from "lodash-es";
3
+ import { sm4 } from "sm-crypto";
4
+ const NAME = "@vope/utils";
5
+ const PREFIX = NAME + "_";
6
+ const key = [25, 144, 1, 32, 25, 135, 6, 40, 32, 23, 18, 19, 32, 36, 9, 5];
7
+ const iv = [182, 59, 9, 29, 86, 64, 118, 111, 112, 101, 47, 117, 116, 105, 108, 115];
8
+ const config = {
44
9
  output: "string",
45
10
  mode: "cbc",
46
11
  iv
47
12
  };
48
- var HEADER = "." + import_sm_crypto.sm4.encrypt(NAME, key, config);
49
- var encrypt = (data) => {
13
+ const HEADER = "." + sm4.encrypt(NAME, key, config);
14
+ const encrypt = (data) => {
50
15
  let text = "";
51
16
  for (const key2 in data) {
52
17
  const value = data[key2];
@@ -54,13 +19,13 @@ var encrypt = (data) => {
54
19
  text && (text += "&");
55
20
  text += key2 + ":" + value;
56
21
  }
57
- return import_sm_crypto.sm4.encrypt(text, key, config);
22
+ return sm4.encrypt(text, key, config);
58
23
  };
59
- var decrypt = (text) => {
24
+ const decrypt = (text) => {
60
25
  const data = {};
61
26
  let value;
62
27
  try {
63
- value = import_sm_crypto.sm4.decrypt(text, key, config);
28
+ value = sm4.decrypt(text, key, config);
64
29
  } catch {
65
30
  value = "";
66
31
  }
@@ -74,21 +39,21 @@ var decrypt = (text) => {
74
39
  });
75
40
  return data;
76
41
  };
77
- var structKey = (index) => index.toString(16).padStart(8, "0");
78
- var reductKey = (key2) => parseInt(key2, 16);
79
- var MESSAGES = {
42
+ const structKey = (index) => index.toString(16).padStart(8, "0");
43
+ const reductKey = (key2) => parseInt(key2, 16);
44
+ const MESSAGES = {
80
45
  mount: "Please wait for the mounting to complete",
81
46
  auth: "Unauthorized operation",
82
47
  push: "Cannot add data to expired databases",
83
48
  update: "Cannot update data to expired databases",
84
49
  get: "Cannot get data from expired databases"
85
50
  };
86
- var createInstance = (name, version = 2) => import_localforage.default.createInstance({
87
- driver: import_localforage.default.INDEXEDDB,
51
+ const createInstance = (name, version = 2) => localforage.createInstance({
52
+ driver: localforage.INDEXEDDB,
88
53
  name,
89
54
  version
90
55
  });
91
- var OfflineStorage = class _OfflineStorage {
56
+ class OfflineStorage {
92
57
  #forage;
93
58
  #expire;
94
59
  #auth = false;
@@ -108,7 +73,7 @@ var OfflineStorage = class _OfflineStorage {
108
73
  token: newToken,
109
74
  crypto
110
75
  }) {
111
- const forage = this.#forage = createInstance(import_sm_crypto.sm4.encrypt(PREFIX + name, key, config));
76
+ const forage = this.#forage = createInstance(sm4.encrypt(PREFIX + name, key, config));
112
77
  this.#mount = new Promise(async (resolve) => {
113
78
  const keys = await forage.keys().then((keys2) => keys2).catch(() => []);
114
79
  let size = 0;
@@ -210,13 +175,13 @@ var OfflineStorage = class _OfflineStorage {
210
175
  if (e) throw e;
211
176
  });
212
177
  this.#size = 0;
213
- await import_localforage.default.dropInstance({
178
+ await localforage.dropInstance({
214
179
  name: this.#forage.config().name
215
180
  });
216
181
  }
217
182
  static default(options) {
218
- (0, import_lodash_es.isString)(options) && (options = { name: options });
219
- return new _OfflineStorage({
183
+ isString(options) && (options = { name: options });
184
+ return new OfflineStorage({
220
185
  ...options,
221
186
  crypto: {
222
187
  encrypt(plain) {
@@ -236,7 +201,7 @@ var OfflineStorage = class _OfflineStorage {
236
201
  if (name === void 0) continue;
237
202
  let text;
238
203
  try {
239
- text = import_sm_crypto.sm4.decrypt(name, key, config);
204
+ text = sm4.decrypt(name, key, config);
240
205
  } catch {
241
206
  continue;
242
207
  }
@@ -252,4 +217,7 @@ var OfflineStorage = class _OfflineStorage {
252
217
  }
253
218
  await Promise.all(tasks);
254
219
  }
220
+ }
221
+ export {
222
+ OfflineStorage
255
223
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "types": "offline.d.ts",
3
- "import": "offline.mjs",
4
- "require": "offline.js"
3
+ "import": "offline.js",
4
+ "require": "offline.cjs.js"
5
5
  }
package/dist/index.mjs DELETED
@@ -1,73 +0,0 @@
1
- import { clamp } from "./clamp";
2
- import { classnames } from "./classnames";
3
- import { compareVersion } from "./compare/version";
4
- import { deepWeakEqual } from "./compare/weak-equal";
5
- import { hash8json } from "./convert/json";
6
- import { hash8object } from "./convert/object";
7
- import { hash8strings } from "./convert/strings";
8
- import { desensEncrypt, desensDecrypt, desensReplace } from "./desens";
9
- import { getEncoding } from "./encoding";
10
- import { inputRegex } from "./input-regex";
11
- import { isClass } from "./is/class";
12
- import { isEmpty } from "./is/empty";
13
- import { isKey } from "./is/key";
14
- import { isNull } from "./is/null";
15
- import { loadImage } from "./load/image";
16
- import { MemoryBasic } from "./memory/basic";
17
- import { MemoryList } from "./memory/list";
18
- import { MemoryPower } from "./memory/power";
19
- import { MemorySimple } from "./memory/simple";
20
- import { default as default2 } from "./neo4j-anchors";
21
- import { default as default3 } from "./neo4j";
22
- import { once } from "./once";
23
- import { parseNum } from "./parse/num";
24
- import { deconPowersSum } from "./power/decon";
25
- import { rotateAngle } from "./rotate/angle";
26
- import { rotateRad } from "./rotate/rad";
27
- import { cubeURLParams, flatURLParams } from "./serialize/url-params";
28
- import { css } from "./style/css";
29
- import { default as default4 } from "./subscriber";
30
- import { FlexTable } from "./table/flex";
31
- import { Union } from "./union";
32
- import { joinPaths } from "./url/join";
33
- import { connectURLParams } from "./url/params";
34
- import { wait } from "./wait";
35
- export {
36
- FlexTable,
37
- MemoryBasic,
38
- MemoryList,
39
- MemoryPower,
40
- MemorySimple,
41
- default3 as Neo4j,
42
- default2 as Neo4jAhchors,
43
- default4 as Subscriber,
44
- Union,
45
- clamp,
46
- classnames,
47
- compareVersion,
48
- connectURLParams,
49
- css,
50
- cubeURLParams,
51
- deconPowersSum,
52
- deepWeakEqual,
53
- desensDecrypt,
54
- desensEncrypt,
55
- desensReplace,
56
- flatURLParams,
57
- getEncoding,
58
- hash8json,
59
- hash8object,
60
- hash8strings,
61
- inputRegex,
62
- isClass,
63
- isEmpty,
64
- isKey,
65
- isNull,
66
- joinPaths,
67
- loadImage,
68
- once,
69
- parseNum,
70
- rotateAngle,
71
- rotateRad,
72
- wait
73
- };
@@ -1,8 +0,0 @@
1
- import { flatURLParams } from "../serialize/url-params";
2
- const connectURLParams = (url, params, serializes) => {
3
- const query = flatURLParams(params, serializes);
4
- return query ? url.includes("?") ? url + "&" + query : url + "?" + query : url;
5
- };
6
- export {
7
- connectURLParams
8
- };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes