@frankieone/one-sdk 1.2.0-beta → 1.2.0-rc.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.
- package/README.md +6 -7
- package/dist/commit.txt +2 -2
- package/dist/esm/modules/features.config.d.ts.map +1 -1
- package/dist/esm/modules/features.config.js +1 -1
- package/dist/esm/modules/features.config.js.map +1 -1
- package/dist/esm/modules/meta.json +1 -1
- package/dist/esm/modules/sdk/index.d.ts +0 -1
- package/dist/esm/modules/sdk/index.d.ts.map +1 -1
- package/dist/esm/modules/sdk/index.js +1 -3
- package/dist/esm/modules/sdk/index.js.map +1 -1
- package/dist/release.txt +2 -2
- package/dist/version.txt +2 -2
- package/package.json +167 -172
package/README.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
# frontend-onesdk-library
|
|
2
|
-
|
|
3
|
-
FrankieOne OneSDK Library
|
|
4
|
-
|
|
5
|
-
<sub>This readme was generated using the Github repository provisioning
|
|
6
|
-
|
|
7
|
-
Pedro was here.
|
|
1
|
+
# frontend-onesdk-library
|
|
2
|
+
|
|
3
|
+
FrankieOne OneSDK Library
|
|
4
|
+
|
|
5
|
+
<sub>This readme was generated using the Github repository provisioning
|
|
6
|
+
pipeline.</sub>
|
package/dist/commit.txt
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
1708c87db6f87d14bc9a688000263fe94a058aec
|
|
2
|
+
1708c87db6f87d14bc9a688000263fe94a058aec
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"features.config.d.ts","sourceRoot":"","sources":["../../../modules/features.config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAE5C,QAAA,MAAM,QAAQ;IACZ;;0HAEsH;;;;YAIlH;;;;;gBAKI;;;;;;;;YAQJ;;;;;gBAKI;;;;;;;;;;;;;;;IAkBR,qFAAqF;;;;;;;;;CAS7E,CAAC;AAEX;;;GAGG;AACH,wBAAgB,IAAI,CAAC,KAAK,CAAC,IAAI,SAAS,KAAK,CAAC,QAAQ,CAAC,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,IAAI,GAAG,IAAI,CAElG;
|
|
1
|
+
{"version":3,"file":"features.config.d.ts","sourceRoot":"","sources":["../../../modules/features.config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAE5C,QAAA,MAAM,QAAQ;IACZ;;0HAEsH;;;;YAIlH;;;;;gBAKI;;;;;;;;YAQJ;;;;;gBAKI;;;;;;;;;;;;;;;IAkBR,qFAAqF;;;;;;;;;CAS7E,CAAC;AAEX;;;GAGG;AACH,wBAAgB,IAAI,CAAC,KAAK,CAAC,IAAI,SAAS,KAAK,CAAC,QAAQ,CAAC,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,IAAI,GAAG,IAAI,CAElG;AAED,KAAK,QAAQ,GAAG,OAAO,QAAQ,CAAC;AAChC,KAAK,OAAO,CAAC,CAAC,SAAS,KAAK,CAAC,QAAQ,CAAC,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import get from 'lodash.get';
|
|
2
2
|
const features = {
|
|
3
3
|
/** Configure eventHub to include stack trace of the event emission.
|
|
4
4
|
* When this value is 'true' it will break multiple tests that don't expect an extra parameter to be emitted with events.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"features.config.js","sourceRoot":"","sources":["../../../modules/features.config.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"features.config.js","sourceRoot":"","sources":["../../../modules/features.config.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,YAAY,CAAC;AAI7B,MAAM,QAAQ,GAAG;IACf;;0HAEsH;IACtH,yBAAyB,EAAE,KAAK;IAChC,OAAO,EAAE;QACP,GAAG,EAAE;YACH;;;;;gBAKI;YACJ,oBAAoB,EAAE;gBACpB,MAAM,EAAE,KAAK;gBACb,MAAM,EAAE,KAAK;gBACb,OAAO,EAAE,KAAK,EAAE,sBAAsB;aACvC;SACF;QACD,GAAG,EAAE;YACH;;;;;gBAKI;YACJ,oBAAoB,EAAE;gBACpB,UAAU,EAAE,KAAK;gBACjB,MAAM,EAAE,IAAI;gBACZ,OAAO,EAAE,IAAI;aACd;SACF;QACD,OAAO,EAAE;YACP,YAAY,EAAE,QAAuC;YACrD,IAAI,EAAE;gBACJ,MAAM,EAAE,8EAA8E;gBACtF,2CAA2C;gBAC3C,2FAA2F;gBAC3F,gCAAgC;gBAChC,iBAAiB,EAAE,qBAAqB;aACzC;SACF;KACF;IACD,qFAAqF;IACrF,cAAc,EAAE;QACd,GAAG,EAAE;YACH,mBAAmB,EAAE,IAAI;SAC1B;QACD,GAAG,EAAE;YACH,mBAAmB,EAAE,IAAI;SAC1B;KACF;CACO,CAAC;AAEX;;;GAGG;AACH,MAAM,UAAU,IAAI,CAA2D,OAAa;IAC1F,OAAO,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAS,CAAC;AACxC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "version": "1.2.0-
|
|
1
|
+
{ "version": "1.2.0-rc.1" }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../modules/sdk/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../modules/sdk/index.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAiB,YAAY,EAAwB,MAAM,SAAS,CAAC;AAEjF,eAAO,MAAM,MAAM,EAAE,YAyDpB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// TODO: Prevent one sdk from ever throwing an error. Emit error events instead.
|
|
1
2
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
3
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
4
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -7,9 +8,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
9
|
});
|
|
9
10
|
};
|
|
10
|
-
// TODO: Prevent one sdk from ever throwing an error. Emit error events instead.
|
|
11
|
-
// Import the configuration script to bootstrap the one sdk "setup" process
|
|
12
|
-
import '@config';
|
|
13
11
|
import { getInitialiser } from '../config/index.js';
|
|
14
12
|
import { SessionFacade } from '../session/SessionFacade.js';
|
|
15
13
|
import { mkEventListener } from '../common/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../modules/sdk/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../modules/sdk/index.ts"],"names":[],"mappings":"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"}
|
package/dist/release.txt
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
v1.2.0-
|
|
1
|
+
|
|
2
|
+
v1.2.0-rc.1
|
package/dist/version.txt
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
1.2.0-
|
|
2
|
-
v1.2.0-
|
|
1
|
+
1.2.0-rc.1
|
|
2
|
+
v1.2.0-rc.1
|
package/package.json
CHANGED
|
@@ -1,172 +1,167 @@
|
|
|
1
|
-
{
|
|
2
|
-
"author": {
|
|
3
|
-
"name": "FrankieOne",
|
|
4
|
-
"email": "pedro@frankieone.com",
|
|
5
|
-
"url": "https://frankieone.com"
|
|
6
|
-
},
|
|
7
|
-
"engines": {
|
|
8
|
-
"node": "18",
|
|
9
|
-
"npm": "10"
|
|
10
|
-
},
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"lodash.
|
|
21
|
-
"
|
|
22
|
-
"moment": "^
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"react": "^18.2.0",
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"string-format": "^2.0.0",
|
|
31
|
-
"ua-parser-js": "^1.0.33",
|
|
32
|
-
"utf8": "^3.0.0",
|
|
33
|
-
"uuid": "^8.3.2",
|
|
34
|
-
"zod": "^3.19.1"
|
|
35
|
-
},
|
|
36
|
-
"description": "FrankieOne OneSDK",
|
|
37
|
-
"devDependencies": {
|
|
38
|
-
"@esbuild-plugins/node-globals-polyfill": "^0.1.1",
|
|
39
|
-
"@esbuild-plugins/node-modules-polyfill": "^0.1.4",
|
|
40
|
-
"@jest/globals": "^28.1.0",
|
|
41
|
-
"@rollup/plugin-commonjs": "^22.0.2",
|
|
42
|
-
"@rollup/plugin-html": "^0.2.4",
|
|
43
|
-
"@rollup/plugin-json": "^4.1.0",
|
|
44
|
-
"@rollup/plugin-node-resolve": "^14.1.0",
|
|
45
|
-
"@rollup/plugin-typescript": "^8.5.0",
|
|
46
|
-
"@types/base-64": "^1.0.0",
|
|
47
|
-
"@types/dotenv-flow": "^3.2.0",
|
|
48
|
-
"@types/estree": "^1.0.0",
|
|
49
|
-
"@types/event-emitter": "^0.3.3",
|
|
50
|
-
"@types/jest": "^27.5.1",
|
|
51
|
-
"@types/jwt-decode": "^3.1.0",
|
|
52
|
-
"@types/jwt-encode": "^1.0.0",
|
|
53
|
-
"@types/lodash.
|
|
54
|
-
"@types/lodash.
|
|
55
|
-
"@types/
|
|
56
|
-
"@types/react
|
|
57
|
-
"@types/
|
|
58
|
-
"@types/
|
|
59
|
-
"@types/
|
|
60
|
-
"@types/
|
|
61
|
-
"@
|
|
62
|
-
"@typescript-eslint/
|
|
63
|
-
"@
|
|
64
|
-
"@vitejs/plugin-
|
|
65
|
-
"@
|
|
66
|
-
"
|
|
67
|
-
"clean-webpack-plugin": "^4.0.0",
|
|
68
|
-
"command-line-args": "^5.2.1",
|
|
69
|
-
"copy-webpack-plugin": "^10.2.4",
|
|
70
|
-
"css-loader": "^6.7.1",
|
|
71
|
-
"declaration-bundler-webpack-plugin": "^1.0.3",
|
|
72
|
-
"dotenv-flow": "^3.2.0",
|
|
73
|
-
"dotenv-webpack": "^7.1.1",
|
|
74
|
-
"eslint": "^8.49.0",
|
|
75
|
-
"eslint-import-resolver-typescript": "^3.6.0",
|
|
76
|
-
"eslint-plugin-check-file": "^2.6.2",
|
|
77
|
-
"eslint-plugin-import": "^2.28.1",
|
|
78
|
-
"eslint-plugin-react": "^7.33.2",
|
|
79
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
80
|
-
"eslint-plugin-react-refresh": "^0.4.3",
|
|
81
|
-
"eslint-plugin-unused-imports": "^3.0.0",
|
|
82
|
-
"file-loader": "^6.2.0",
|
|
83
|
-
"jest": "^28.1.2",
|
|
84
|
-
"jest-environment-jsdom": "^28.1.2",
|
|
85
|
-
"jest-extended": "^3.2.1",
|
|
86
|
-
"jest-location-mock": "^1.0.9",
|
|
87
|
-
"jest-mock-axios": "^4.6.1",
|
|
88
|
-
"jwt-encode": "^1.0.1",
|
|
89
|
-
"lint-staged": "^12.4.0",
|
|
90
|
-
"live-server": "^1.2.2",
|
|
91
|
-
"madge": "^6.0.0",
|
|
92
|
-
"mini-css-extract-plugin": "^2.6.0",
|
|
93
|
-
"node-polyfill-webpack-plugin": "^2.0.1",
|
|
94
|
-
"npm-run-all": "^4.1.5",
|
|
95
|
-
"
|
|
96
|
-
"react": "^18.2.0",
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"rollup": "^2.
|
|
100
|
-
"rollup-plugin-
|
|
101
|
-
"rollup-plugin-
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"ts-
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
"
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
"
|
|
127
|
-
"
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
"build:
|
|
146
|
-
"build
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
"
|
|
150
|
-
"
|
|
151
|
-
"
|
|
152
|
-
"
|
|
153
|
-
"
|
|
154
|
-
"
|
|
155
|
-
"
|
|
156
|
-
"
|
|
157
|
-
"
|
|
158
|
-
"
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
"files": [
|
|
169
|
-
"dist/**/*",
|
|
170
|
-
"README.md"
|
|
171
|
-
]
|
|
172
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"author": {
|
|
3
|
+
"name": "FrankieOne",
|
|
4
|
+
"email": "pedro@frankieone.com",
|
|
5
|
+
"url": "https://frankieone.com"
|
|
6
|
+
},
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": "18",
|
|
9
|
+
"npm": "10"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"axios": "^0.27.2",
|
|
13
|
+
"base-64": "^1.0.0",
|
|
14
|
+
"convert-hex": "^0.1.0",
|
|
15
|
+
"country-data": "^0.0.31",
|
|
16
|
+
"event-emitter": "^0.3.5",
|
|
17
|
+
"jwt-decode": "^3.1.2",
|
|
18
|
+
"lodash.get": "^4.4.2",
|
|
19
|
+
"lodash.merge": "^4.6.2",
|
|
20
|
+
"lodash.pickby": "^4.6.0",
|
|
21
|
+
"moment": "^2.29.3",
|
|
22
|
+
"moment-timezone": "^0.5.34",
|
|
23
|
+
"node-html-parser": "^6.1.0",
|
|
24
|
+
"onfido-sdk-ui": "^12.4.1",
|
|
25
|
+
"react": "^18.2.0",
|
|
26
|
+
"react-dom": "^18.2.0",
|
|
27
|
+
"rxjs": "^7.5.5",
|
|
28
|
+
"sanitize-html": "^2.7.0",
|
|
29
|
+
"sass": "^1.70.0",
|
|
30
|
+
"string-format": "^2.0.0",
|
|
31
|
+
"ua-parser-js": "^1.0.33",
|
|
32
|
+
"utf8": "^3.0.0",
|
|
33
|
+
"uuid": "^8.3.2",
|
|
34
|
+
"zod": "^3.19.1"
|
|
35
|
+
},
|
|
36
|
+
"description": "FrankieOne OneSDK",
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@esbuild-plugins/node-globals-polyfill": "^0.1.1",
|
|
39
|
+
"@esbuild-plugins/node-modules-polyfill": "^0.1.4",
|
|
40
|
+
"@jest/globals": "^28.1.0",
|
|
41
|
+
"@rollup/plugin-commonjs": "^22.0.2",
|
|
42
|
+
"@rollup/plugin-html": "^0.2.4",
|
|
43
|
+
"@rollup/plugin-json": "^4.1.0",
|
|
44
|
+
"@rollup/plugin-node-resolve": "^14.1.0",
|
|
45
|
+
"@rollup/plugin-typescript": "^8.5.0",
|
|
46
|
+
"@types/base-64": "^1.0.0",
|
|
47
|
+
"@types/dotenv-flow": "^3.2.0",
|
|
48
|
+
"@types/estree": "^1.0.0",
|
|
49
|
+
"@types/event-emitter": "^0.3.3",
|
|
50
|
+
"@types/jest": "^27.5.1",
|
|
51
|
+
"@types/jwt-decode": "^3.1.0",
|
|
52
|
+
"@types/jwt-encode": "^1.0.0",
|
|
53
|
+
"@types/lodash.get": "^4.4.9",
|
|
54
|
+
"@types/lodash.merge": "^4.6.7",
|
|
55
|
+
"@types/lodash.pickby": "^4.6.7",
|
|
56
|
+
"@types/react": "^18.2.15",
|
|
57
|
+
"@types/react-dom": "^18.2.7",
|
|
58
|
+
"@types/sanitize-html": "^2.6.2",
|
|
59
|
+
"@types/ua-parser-js": "^0.7.36",
|
|
60
|
+
"@types/utf8": "^3.0.1",
|
|
61
|
+
"@types/uuid": "^8.3.4",
|
|
62
|
+
"@typescript-eslint/eslint-plugin": "^6.6.0",
|
|
63
|
+
"@typescript-eslint/parser": "^6.6.0",
|
|
64
|
+
"@vitejs/plugin-basic-ssl": "^1.0.1",
|
|
65
|
+
"@vitejs/plugin-react": "^4.0.3",
|
|
66
|
+
"@webpack-cli/generators": "^2.4.2",
|
|
67
|
+
"clean-webpack-plugin": "^4.0.0",
|
|
68
|
+
"command-line-args": "^5.2.1",
|
|
69
|
+
"copy-webpack-plugin": "^10.2.4",
|
|
70
|
+
"css-loader": "^6.7.1",
|
|
71
|
+
"declaration-bundler-webpack-plugin": "^1.0.3",
|
|
72
|
+
"dotenv-flow": "^3.2.0",
|
|
73
|
+
"dotenv-webpack": "^7.1.1",
|
|
74
|
+
"eslint": "^8.49.0",
|
|
75
|
+
"eslint-import-resolver-typescript": "^3.6.0",
|
|
76
|
+
"eslint-plugin-check-file": "^2.6.2",
|
|
77
|
+
"eslint-plugin-import": "^2.28.1",
|
|
78
|
+
"eslint-plugin-react": "^7.33.2",
|
|
79
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
80
|
+
"eslint-plugin-react-refresh": "^0.4.3",
|
|
81
|
+
"eslint-plugin-unused-imports": "^3.0.0",
|
|
82
|
+
"file-loader": "^6.2.0",
|
|
83
|
+
"jest": "^28.1.2",
|
|
84
|
+
"jest-environment-jsdom": "^28.1.2",
|
|
85
|
+
"jest-extended": "^3.2.1",
|
|
86
|
+
"jest-location-mock": "^1.0.9",
|
|
87
|
+
"jest-mock-axios": "^4.6.1",
|
|
88
|
+
"jwt-encode": "^1.0.1",
|
|
89
|
+
"lint-staged": "^12.4.0",
|
|
90
|
+
"live-server": "^1.2.2",
|
|
91
|
+
"madge": "^6.0.0",
|
|
92
|
+
"mini-css-extract-plugin": "^2.6.0",
|
|
93
|
+
"node-polyfill-webpack-plugin": "^2.0.1",
|
|
94
|
+
"npm-run-all": "^4.1.5",
|
|
95
|
+
"react": "^18.2.0",
|
|
96
|
+
"react-dom": "^18.2.0",
|
|
97
|
+
"resolve-tspaths": "^0.8.17",
|
|
98
|
+
"rollup": "^2.79.0",
|
|
99
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
100
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
101
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
102
|
+
"sass-loader": "^12.6.0",
|
|
103
|
+
"sort-json": "^2.0.1",
|
|
104
|
+
"style-loader": "^3.3.1",
|
|
105
|
+
"transpile-webpack-plugin": "^1.1.3",
|
|
106
|
+
"ts-jest": "^28.0.3",
|
|
107
|
+
"ts-jest-mock-import-meta": "^0.12.0",
|
|
108
|
+
"ts-loader": "^9.2.9",
|
|
109
|
+
"ts-node": "^10.8.0",
|
|
110
|
+
"tsc-alias": "^1.6.7",
|
|
111
|
+
"tsconfig-paths-webpack-plugin": "^3.5.2",
|
|
112
|
+
"typescript": "^5.3.3",
|
|
113
|
+
"vite": "^4.4.5",
|
|
114
|
+
"webpack": "^5.72.0",
|
|
115
|
+
"webpack-bundle-analyzer": "^4.5.0",
|
|
116
|
+
"webpack-cli": "^4.9.2"
|
|
117
|
+
},
|
|
118
|
+
"peerDependencies": {
|
|
119
|
+
"ts-toolbelt": "^9.0.0",
|
|
120
|
+
"type-fest": "^4.8.3",
|
|
121
|
+
"typescript": "^5.0.4"
|
|
122
|
+
},
|
|
123
|
+
"keywords": [],
|
|
124
|
+
"license": "ISC",
|
|
125
|
+
"main": "./dist/esm/modules/index.js",
|
|
126
|
+
"unpkg": "./dist/umd/oneSdk.umd.js",
|
|
127
|
+
"exports": {
|
|
128
|
+
"node": {
|
|
129
|
+
"module": "./dist/esm/modules/index.js",
|
|
130
|
+
"require": "./dist/umd/oneSdk.umd.js"
|
|
131
|
+
},
|
|
132
|
+
"script": "./dist/umd/oneSdk.umd.js",
|
|
133
|
+
"default": "./dist/esm/modules/index.js"
|
|
134
|
+
},
|
|
135
|
+
"name": "@frankieone/one-sdk",
|
|
136
|
+
"scripts": {
|
|
137
|
+
"test:analyze": "node --expose-gc ./node_modules/.bin/jest --runInBand --silent --coverage --logHeapUsage",
|
|
138
|
+
"build:analyze": "EMIT_BUNDLE_ANALYTICS=open npm run build:umd",
|
|
139
|
+
"test": "jest --clearCache && jest --detectOpenHandles --silent --expand",
|
|
140
|
+
"refactor": "run-p --race \"test -- --watchAll ${npm_config_path:-.} \" \"tsc-check -- --watch\"",
|
|
141
|
+
"fresh": "node scripts/fresh.js --include-apps",
|
|
142
|
+
"build:dev": "webpack --mode=development && tsc --project ./tsconfig.modules.json --declaration",
|
|
143
|
+
"build:umd": "webpack --mode=production --node-env=production",
|
|
144
|
+
"build:esm": "node --experimental-json-modules ./scripts/buildTS.js -c ./tsconfig.modules.json -t esm",
|
|
145
|
+
"build:cjs": "node ./scripts/buildTS.js -c ./tsconfig.modules.json -t cjs",
|
|
146
|
+
"build": "run-p \"build:umd\" \"build:esm\"",
|
|
147
|
+
"lint:staged": "lint-staged --verbose --concurrent=false",
|
|
148
|
+
"start:self-hosted": "cd apps/self-hosted && npm run dev",
|
|
149
|
+
"dev": "npm run start:playground",
|
|
150
|
+
"serve": "npx http-server -S -C cert.pem dist/umd",
|
|
151
|
+
"start:playground": "cd apps/playground && npm start",
|
|
152
|
+
"build:playground": "cd apps/playground && npm run build",
|
|
153
|
+
"build:self-hosted": "cd apps/self-hosted && npm run build",
|
|
154
|
+
"watch": "webpack --watch",
|
|
155
|
+
"tsc-check-all": "tsc -p ./tsconfig.json --noEmit",
|
|
156
|
+
"tsc-check": "tsc -p ./tsconfig.modules.json --noEmit",
|
|
157
|
+
"eslint-check": "eslint . -c .eslintrc.cjs --quiet --exit-on-fatal-error",
|
|
158
|
+
"curr-version": "echo $npm_package_version"
|
|
159
|
+
},
|
|
160
|
+
"types": "./dist/esm/modules/index.d.ts",
|
|
161
|
+
"type": "module",
|
|
162
|
+
"version": "1.2.0-rc.1",
|
|
163
|
+
"files": [
|
|
164
|
+
"dist/**/*",
|
|
165
|
+
"README.md"
|
|
166
|
+
]
|
|
167
|
+
}
|