webpb 0.0.20 → 0.0.21
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/dist/index.cjs +1 -0
- package/package.json +15 -15
- package/dist/webpb.iife.js +0 -1
- /package/dist/{webpb.js → index.ejs} +0 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function f(e,o,n){if(!(!e||!o||typeof e!="object"||typeof o!="object"))for(const[r,t]of Object.entries(e))t!==void 0&&!u(r,n)&&(o[r]=t)}function u(e,o){if(!o)return!1;for(const n of o)if(n===e)return!0;return!1}function c(e,o){if(e==null||typeof e!="object")return null;for(const n of o.split("."))if(e=e[n],e==null)return e;return e}function s(e,o){const n=[];for(const[r,t]of Object.entries(o)){if(t==null||typeof t=="function")continue;const i=encodeURIComponent(String(t));i&&n.push(`${r}=${i}`)}return n.length?`${e}${n.join("&")}`:""}function l(e,o){if(!e||typeof e!="object"||Array.isArray(e))return e;const n={};for(const[r,t]of Object.entries(e)){const i=t==null?void 0:t.toAlias;typeof i=="function"?n[r]=i():o&&o[r]?n[o[r]]=t:n[r]=t}return n}function y(e,o){return Object.entries(e).reduce((n,[r,t])=>(n[r]=o(t),n),{})}exports.assign=f;exports.getter=c;exports.mapValues=y;exports.query=s;exports.toAlias=l;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webpb",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.21",
|
|
4
4
|
"description": "The webpb runtime library",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"check": "npm run lint && npm run test",
|
|
9
9
|
"lint": "eslint --quiet src/**/*.ts",
|
|
10
10
|
"lint:fix": "eslint --fix src/**/*.ts",
|
|
11
|
-
"deploy": "npm run check && npm run build && npm publish ./
|
|
12
|
-
"test": "
|
|
11
|
+
"deploy": "npm run check && npm run build && npm publish ./build --access public",
|
|
12
|
+
"test": "vitest --coverage"
|
|
13
13
|
},
|
|
14
14
|
"author": "jinganix@gmail.com",
|
|
15
15
|
"license": "Apache-2.0",
|
|
@@ -21,22 +21,24 @@
|
|
|
21
21
|
"type": "git",
|
|
22
22
|
"url": "https://github.com/jinganix/webpb"
|
|
23
23
|
},
|
|
24
|
-
"module": "./dist/
|
|
24
|
+
"module": "./dist/index.js",
|
|
25
25
|
"type": "module",
|
|
26
26
|
"exports": {
|
|
27
|
-
".":
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
".": [
|
|
28
|
+
{
|
|
29
|
+
"import": "./dist/index.mjs",
|
|
30
|
+
"require": "./dist/index.cjs"
|
|
31
|
+
},
|
|
32
|
+
"./dist/index.cjs"
|
|
33
|
+
]
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
|
35
36
|
"@eslint/compat": "^1.2.4",
|
|
36
|
-
"@types/jest": "^29.5.14",
|
|
37
37
|
"@types/node": "^22.10.1",
|
|
38
38
|
"@typescript-eslint/eslint-plugin": "^8.17.0",
|
|
39
39
|
"@typescript-eslint/parser": "^8.17.0",
|
|
40
|
+
"@vitest/coverage-v8": "^2.1.8",
|
|
41
|
+
"copyfiles": "^2.4.1",
|
|
40
42
|
"dts-bundle-generator": "^9.5.1",
|
|
41
43
|
"eslint": "^9.16.0",
|
|
42
44
|
"eslint-config-prettier": "^9.1.0",
|
|
@@ -45,15 +47,13 @@
|
|
|
45
47
|
"eslint-plugin-no-null": "^1.0.2",
|
|
46
48
|
"eslint-plugin-prettier": "^5.2.1",
|
|
47
49
|
"eslint-plugin-sort-keys-fix": "^1.1.2",
|
|
48
|
-
"jest": "^29.7.0",
|
|
49
50
|
"prettier": "^3.4.2",
|
|
50
51
|
"pretty-quick": "^4.0.0",
|
|
51
52
|
"rimraf": "^6.0.1",
|
|
52
|
-
"copyfiles": "^2.4.1",
|
|
53
|
-
"ts-jest": "^29.2.5",
|
|
54
53
|
"ts-node": "^10.9.2",
|
|
55
54
|
"typescript": "^5.7.2",
|
|
56
55
|
"typescript-eslint": "^8.17.0",
|
|
57
|
-
"vite": "^6.0.3"
|
|
56
|
+
"vite": "^6.0.3",
|
|
57
|
+
"vitest": "^2.1.8"
|
|
58
58
|
}
|
|
59
59
|
}
|
package/dist/webpb.iife.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var webpb=function(i){"use strict";function u(e,o,n){if(!(!e||!o||typeof e!="object"||typeof o!="object"))for(const[r,t]of Object.entries(e))t!==void 0&&!c(r,n)&&(o[r]=t)}function c(e,o){if(!o)return!1;for(const n of o)if(n===e)return!0;return!1}function l(e,o){if(e==null||typeof e!="object")return null;for(const n of o.split("."))if(e=e[n],e==null)return e;return e}function s(e,o){const n=[];for(const[r,t]of Object.entries(o)){if(t==null||typeof t=="function")continue;const f=encodeURIComponent(String(t));f&&n.push(`${r}=${f}`)}return n.length?`${e}${n.join("&")}`:""}function y(e,o){if(!e||typeof e!="object"||Array.isArray(e))return e;const n={};for(const[r,t]of Object.entries(e)){const f=t==null?void 0:t.toAlias;typeof f=="function"?n[r]=f():o&&o[r]?n[o[r]]=t:n[r]=t}return n}function b(e,o){return Object.entries(e).reduce((n,[r,t])=>(n[r]=o(t),n),{})}return i.assign=u,i.getter=l,i.mapValues=b,i.query=s,i.toAlias=y,Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),i}({});
|
|
File without changes
|