@willbooster/shared-lib 1.3.1 → 1.3.3
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/cjs/index.d.ts +2 -0
- package/dist/cjs/index.js +2 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/shuffle.d.ts +2 -0
- package/dist/cjs/shuffle.js +2 -0
- package/dist/cjs/shuffle.js.map +1 -0
- package/dist/cjs/zenkaku.d.ts +2 -0
- package/dist/cjs/zenkaku.js +2 -0
- package/dist/cjs/zenkaku.js.map +1 -0
- package/dist/esm/index.d.ts +2 -0
- package/dist/{index.js → esm/index.js} +1 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/shuffle.d.ts +2 -0
- package/dist/esm/shuffle.js +2 -0
- package/dist/esm/shuffle.js.map +1 -0
- package/dist/esm/zenkaku.d.ts +2 -0
- package/dist/esm/zenkaku.js +2 -0
- package/dist/esm/zenkaku.js.map +1 -0
- package/package.json +26 -22
- package/dist/shuffle.js +0 -1
- package/dist/zenkaku.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shuffle.js","sources":["../../src/shuffle.ts"],"sourcesContent":["export function shuffle<T>(array: T[]): T[] {\n for (let index = array.length - 1; index > 0; index--) {\n const index_ = Math.floor(Math.random() * (index + 1));\n [array[index], array[index_]] = [array[index_], array[index]];\n }\n return array;\n}\n"],"names":["array","index","length","index_","Math","floor","random"],"mappings":"oFAAO,SAAoBA,GACzB,IAAK,IAAIC,EAAQD,EAAME,OAAS,EAAGD,EAAQ,EAAGA,IAAS,CACrD,MAAME,EAASC,KAAKC,MAAMD,KAAKE,UAAYL,EAAQ,KAClDD,EAAMC,GAAQD,EAAMG,IAAW,CAACH,EAAMG,GAASH,EAAMC,GACxD,CACA,OAAOD,CACT"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.zenkakuAlphanumericalsToHankaku=function(e){return e.replace(/[0-9A-Za-z]/g,(e=>{var r;return String.fromCodePoint((null!==(r=e.codePointAt(0))&&void 0!==r?r:0)-65248)}))};
|
|
2
|
+
//# sourceMappingURL=zenkaku.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zenkaku.js","sources":["../../src/zenkaku.ts"],"sourcesContent":["export function zenkakuAlphanumericalsToHankaku(str: string): string {\n return str.replace(/[0-9A-Za-z]/g, (s: string) => {\n return String.fromCodePoint((s.codePointAt(0) ?? 0) - 0xfe_e0);\n });\n}\n"],"names":["str","replace","s","_s$codePointAt","String","fromCodePoint","codePointAt"],"mappings":"4GAAO,SAAyCA,GAC9C,OAAOA,EAAIC,QAAQ,gBAAkBC,IAAc,IAAAC,EACjD,OAAOC,OAAOC,eAA+B,UAAhBH,EAAEI,YAAY,UAAE,IAAAH,EAAAA,EAAI,GAAK,MAAQ,GAElE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shuffle.js","sources":["../../src/shuffle.ts"],"sourcesContent":["export function shuffle<T>(array: T[]): T[] {\n for (let index = array.length - 1; index > 0; index--) {\n const index_ = Math.floor(Math.random() * (index + 1));\n [array[index], array[index_]] = [array[index_], array[index]];\n }\n return array;\n}\n"],"names":["shuffle","array","index","length","index_","Math","floor","random"],"mappings":"AAAO,SAASA,EAAWC,GACzB,IAAK,IAAIC,EAAQD,EAAME,OAAS,EAAGD,EAAQ,EAAGA,IAAS,CACrD,MAAME,EAASC,KAAKC,MAAMD,KAAKE,UAAYL,EAAQ,KAClDD,EAAMC,GAAQD,EAAMG,IAAW,CAACH,EAAMG,GAASH,EAAMC,GACxD,CACA,OAAOD,CACT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zenkaku.js","sources":["../../src/zenkaku.ts"],"sourcesContent":["export function zenkakuAlphanumericalsToHankaku(str: string): string {\n return str.replace(/[0-9A-Za-z]/g, (s: string) => {\n return String.fromCodePoint((s.codePointAt(0) ?? 0) - 0xfe_e0);\n });\n}\n"],"names":["zenkakuAlphanumericalsToHankaku","str","replace","s","_s$codePointAt","String","fromCodePoint","codePointAt"],"mappings":"AAAO,SAASA,EAAgCC,GAC9C,OAAOA,EAAIC,QAAQ,gBAAkBC,IAAc,IAAAC,EACjD,OAAOC,OAAOC,eAA+B,UAAhBH,EAAEI,YAAY,UAAE,IAAAH,EAAAA,EAAI,GAAK,MAAQ,GAElE"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@willbooster/shared-lib",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"author": "WillBooster Inc.",
|
|
6
|
-
"
|
|
6
|
+
"main": "dist/cjs/index.js",
|
|
7
|
+
"module": "dist/esm/index.js",
|
|
8
|
+
"types": "dist/esm/index.d.ts",
|
|
7
9
|
"files": [
|
|
8
10
|
"bin/",
|
|
9
11
|
"dist/"
|
|
@@ -19,43 +21,45 @@
|
|
|
19
21
|
},
|
|
20
22
|
"prettier": "@willbooster/prettier-config",
|
|
21
23
|
"devDependencies": {
|
|
22
|
-
"@babel/core": "7.
|
|
24
|
+
"@babel/core": "7.20.5",
|
|
23
25
|
"@babel/plugin-proposal-class-properties": "7.18.6",
|
|
24
26
|
"@babel/plugin-proposal-numeric-separator": "7.18.6",
|
|
25
|
-
"@babel/
|
|
27
|
+
"@babel/plugin-transform-runtime": "7.19.6",
|
|
28
|
+
"@babel/preset-env": "7.20.2",
|
|
26
29
|
"@babel/preset-typescript": "7.18.6",
|
|
27
|
-
"@rollup/plugin-
|
|
28
|
-
"@rollup/plugin-
|
|
29
|
-
"@rollup/plugin-json": "4.1.0",
|
|
30
|
+
"@rollup/plugin-commonjs": "23.0.3",
|
|
31
|
+
"@rollup/plugin-json": "5.0.2",
|
|
30
32
|
"@rollup/plugin-node-resolve": "14.1.0",
|
|
31
|
-
"@
|
|
33
|
+
"@rollup/plugin-replace": "5.0.1",
|
|
34
|
+
"@types/babel__core": "7.1.20",
|
|
32
35
|
"@types/babel__preset-env": "7.9.2",
|
|
33
|
-
"@types/eslint": "8.4.
|
|
36
|
+
"@types/eslint": "8.4.10",
|
|
34
37
|
"@types/micromatch": "4.0.2",
|
|
35
38
|
"@types/prettier": "2.7.1",
|
|
36
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
37
|
-
"@typescript-eslint/parser": "5.
|
|
39
|
+
"@typescript-eslint/eslint-plugin": "5.45.0",
|
|
40
|
+
"@typescript-eslint/parser": "5.45.0",
|
|
38
41
|
"@willbooster/babel-configs": "1.3.0",
|
|
39
|
-
"@willbooster/eslint-config-ts": "10.0.
|
|
42
|
+
"@willbooster/eslint-config-ts": "10.0.8",
|
|
40
43
|
"@willbooster/prettier-config": "9.1.1",
|
|
41
|
-
"@willbooster/rollup-configs": "
|
|
44
|
+
"@willbooster/rollup-configs": "3.0.1",
|
|
42
45
|
"babel-plugin-transform-remove-console": "6.9.4",
|
|
43
|
-
"eslint": "8.
|
|
46
|
+
"eslint": "8.29.0",
|
|
44
47
|
"eslint-config-prettier": "8.5.0",
|
|
45
|
-
"eslint-import-resolver-typescript": "3.5.
|
|
48
|
+
"eslint-import-resolver-typescript": "3.5.2",
|
|
46
49
|
"eslint-plugin-import": "2.26.0",
|
|
47
|
-
"eslint-plugin-sort-class-members": "1.
|
|
50
|
+
"eslint-plugin-sort-class-members": "1.16.0",
|
|
48
51
|
"eslint-plugin-sort-destructure-keys": "1.4.0",
|
|
49
|
-
"eslint-plugin-unicorn": "
|
|
50
|
-
"lint-staged": "13.0.
|
|
52
|
+
"eslint-plugin-unicorn": "45.0.1",
|
|
53
|
+
"lint-staged": "13.0.4",
|
|
51
54
|
"micromatch": "4.0.5",
|
|
52
|
-
"prettier": "2.
|
|
55
|
+
"prettier": "2.8.0",
|
|
53
56
|
"rollup": "2.79.1",
|
|
54
57
|
"rollup-plugin-analyzer": "4.0.0",
|
|
55
|
-
"rollup-plugin-node-externals": "5.0.
|
|
58
|
+
"rollup-plugin-node-externals": "5.0.2",
|
|
56
59
|
"rollup-plugin-terser": "7.0.2",
|
|
57
|
-
"
|
|
58
|
-
"
|
|
60
|
+
"rollup-plugin-ts": "3.0.2",
|
|
61
|
+
"sort-package-json": "2.1.0",
|
|
62
|
+
"typescript": "4.9.3"
|
|
59
63
|
},
|
|
60
64
|
"publishConfig": {
|
|
61
65
|
"access": "public"
|
package/dist/shuffle.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function r(r){for(var o=r.length-1;o>0;o--){var t=Math.floor(Math.random()*(o+1)),a=[r[t],r[o]];r[o]=a[0],r[t]=a[1]}return r}export{r as shuffle};
|
package/dist/zenkaku.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function n(n){return n.replace(/[0-9A-Za-z]/g,(function(n){var o;return String.fromCodePoint((null!==(o=n.codePointAt(0))&&void 0!==o?o:0)-65248)}))}export{n as zenkakuAlphanumericalsToHankaku};
|