@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 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 pipeline.</sub>
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
- 77bda2c6642c8a469b46e673b2a9f20ab172061a
2
- 77bda2c6642c8a469b46e673b2a9f20ab172061a
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;AACD,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
+ {"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 { get } from 'lodash';
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,EAAE,GAAG,EAAE,MAAM,QAAQ,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
+ {"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-beta" }
1
+ { "version": "1.2.0-rc.1" }
@@ -1,4 +1,3 @@
1
- import '@config';
2
1
  import type { OneSdkModule } from './types';
3
2
  export declare const oneSdk: OneSdkModule;
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../modules/sdk/index.ts"],"names":[],"mappings":"AAEA,OAAO,SAAS,CAAC;AAcjB,OAAO,KAAK,EAAiB,YAAY,EAAwB,MAAM,SAAS,CAAC;AAEjF,eAAO,MAAM,MAAM,EAAE,YAyDpB,CAAC"}
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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vB,IAAI,EAAE;wBACJ,aAAa,EAAE,oBAAoB;qBACpC;oBACD,KAAK;iBACN,CAAC,CAAC;gBACH,MAAM,KAAK,CAAC;YACd,CAAC;QACH,CAAC;KAAA;CACF,CAAC"}
package/dist/release.txt CHANGED
@@ -1,2 +1,2 @@
1
- v1.2.0-beta
2
- v1.2.0-beta
1
+
2
+ v1.2.0-rc.1
package/dist/version.txt CHANGED
@@ -1,2 +1,2 @@
1
- 1.2.0-beta
2
- v1.2.0-beta
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
- "@mui/base": "^5.0.0-beta.32",
13
- "axios": "^0.27.2",
14
- "base-64": "^1.0.0",
15
- "bootstrap": "^4.6.2",
16
- "convert-hex": "^0.1.0",
17
- "country-data": "^0.0.31",
18
- "event-emitter": "^0.3.5",
19
- "jwt-decode": "^3.1.2",
20
- "lodash.merge": "^4.6.2",
21
- "lodash.pickby": "^4.6.0",
22
- "moment": "^2.29.3",
23
- "moment-timezone": "^0.5.34",
24
- "node-html-parser": "^6.1.0",
25
- "onfido-sdk-ui": "^12.4.1",
26
- "react": "^18.2.0",
27
- "react-dom": "^18.2.0",
28
- "rxjs": "^7.5.5",
29
- "sanitize-html": "^2.7.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.merge": "^4.6.7",
54
- "@types/lodash.pickby": "^4.6.7",
55
- "@types/react": "^18.2.15",
56
- "@types/react-dom": "^18.2.7",
57
- "@types/sanitize-html": "^2.6.2",
58
- "@types/ua-parser-js": "^0.7.36",
59
- "@types/utf8": "^3.0.1",
60
- "@types/uuid": "^8.3.4",
61
- "@typescript-eslint/eslint-plugin": "^6.6.0",
62
- "@typescript-eslint/parser": "^6.6.0",
63
- "@vitejs/plugin-basic-ssl": "^1.0.1",
64
- "@vitejs/plugin-react": "^4.0.3",
65
- "@webpack-cli/generators": "^2.4.2",
66
- "autoprefixer": "^10.4.16",
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
- "postcss": "^8.4.33",
96
- "react": "^18.2.0",
97
- "react-dom": "^18.2.0",
98
- "resolve-tspaths": "^0.8.17",
99
- "rollup": "^2.79.0",
100
- "rollup-plugin-peer-deps-external": "^2.2.4",
101
- "rollup-plugin-postcss": "^4.0.2",
102
- "rollup-plugin-terser": "^7.0.2",
103
- "sass": "^1.69.5",
104
- "sass-loader": "^12.6.0",
105
- "sort-json": "^2.0.1",
106
- "style-loader": "^3.3.1",
107
- "tailwindcss": "^3.4.1",
108
- "transpile-webpack-plugin": "^1.1.3",
109
- "ts-jest": "^28.0.3",
110
- "ts-jest-mock-import-meta": "^0.12.0",
111
- "ts-loader": "^9.2.9",
112
- "ts-node": "^10.8.0",
113
- "tsc-alias": "^1.6.7",
114
- "tsconfig-paths-webpack-plugin": "^3.5.2",
115
- "typescript": "^5.3.3",
116
- "vite": "^4.4.5",
117
- "webpack": "^5.72.0",
118
- "webpack-bundle-analyzer": "^4.5.0",
119
- "webpack-cli": "^4.9.2"
120
- },
121
- "peerDependencies": {
122
- "ts-toolbelt": "^9.0.0",
123
- "type-fest": "^4.8.3",
124
- "typescript": "^5.0.4"
125
- },
126
- "keywords": [],
127
- "license": "ISC",
128
- "main": "./dist/esm/modules/index.js",
129
- "unpkg": "./dist/umd/oneSdk.umd.js",
130
- "exports": {
131
- "node": {
132
- "module": "./dist/esm/modules/index.js",
133
- "require": "./dist/umd/oneSdk.umd.js"
134
- },
135
- "script": "./dist/umd/oneSdk.umd.js",
136
- "default": "./dist/esm/modules/index.js"
137
- },
138
- "name": "@frankieone/one-sdk",
139
- "scripts": {
140
- "test:analyze": "node --expose-gc ./node_modules/.bin/jest --runInBand --silent --coverage --logHeapUsage",
141
- "build:analyze": "EMIT_BUNDLE_ANALYTICS=open npm run build:umd",
142
- "test": "jest --clearCache && jest --detectOpenHandles --silent --expand",
143
- "refactor": "run-p --race \"test -- --watchAll ${npm_config_path:-.} \" \"tsc-check -- --watch\"",
144
- "fresh": "node scripts/fresh.js --include-apps",
145
- "build:dev": "webpack --mode=development && tsc --project ./tsconfig.modules.json --declaration",
146
- "build:umd": "webpack --mode=production --node-env=production",
147
- "build:esm": "node --experimental-json-modules ./scripts/buildTS.js -c ./tsconfig.modules.json -t esm",
148
- "build:cjs": "node ./scripts/buildTS.js -c ./tsconfig.modules.json -t cjs",
149
- "build:css": "mkdirp dist/esm/styles && npx tailwindcss -o dist/esm/styles/f1-style.css --minify",
150
- "build": "run-p \"build:umd\" \"build:esm\" \"build:css\"",
151
- "lint:staged": "lint-staged --verbose --concurrent=false",
152
- "start:self-hosted": "cd apps/self-hosted && npm run dev",
153
- "dev": "run-p \"watch:css\" \"start:playground\"",
154
- "serve": "npx http-server -S -C cert.pem dist/umd",
155
- "start:playground": "cd apps/playground && npm start",
156
- "watch:css": "npx tailwindcss -o styles/f1-style.css --watch",
157
- "build:playground": "cd apps/playground && npm run build",
158
- "build:self-hosted": "cd apps/self-hosted && npm run build",
159
- "watch": "webpack --watch",
160
- "tsc-check-all": "tsc -p ./tsconfig.json --noEmit",
161
- "tsc-check": "tsc -p ./tsconfig.modules.json --noEmit",
162
- "eslint-check": "eslint . -c .eslintrc.cjs --quiet --exit-on-fatal-error",
163
- "curr-version": "echo $npm_package_version"
164
- },
165
- "types": "./dist/esm/modules/index.d.ts",
166
- "type": "module",
167
- "version": "1.2.0-beta",
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
+ }