-
Notifications
You must be signed in to change notification settings - Fork 321
/
package.json
310 lines (310 loc) · 12.9 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
{
"private": true,
"name": "@okta/okta-signin-widget",
"description": "The Okta Sign-In Widget",
"version": "7.22.0",
"homepage": "https://github.com/okta/okta-signin-widget",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/okta/okta-signin-widget.git"
},
"bugs": {
"url": "https://github.com/okta/okta-signin-widget/issues"
},
"browserslist": [
"> 0.1%",
"not opera < 69",
"not firefox < 53",
"not safari < 7.1",
"not ie < 11",
"not IE_Mob 11"
],
"engines": {
"node": ">=14.18",
"yarn": "^1.7.0"
},
"types": "./types/src/exports/default.d.ts",
"main": "./target/js/okta-sign-in.js",
"module": "./target/esm/src/exports/exports/default.js",
"exports": {
"./package.json": "./package.json",
".": {
"types": "./types/src/exports/default.d.ts",
"import": "./target/esm/src/exports/exports/default.js",
"require": "./target/js/okta-sign-in.js",
"default": "./target/js/okta-sign-in.js"
},
"./classic": {
"types": "./types/src/exports/classic.d.ts",
"import": "./target/esm/src/exports/exports/classic.js",
"require": "./target/js/okta-sign-in.classic.js",
"default": "./target/js/okta-sign-in.classic.js"
},
"./oie": {
"types": "./types/src/exports/oie.d.ts",
"import": "./target/esm/src/exports/exports/oie.js",
"require": "./target/js/okta-sign-in.oie.js",
"default": "./target/js/okta-sign-in.oie.js"
},
"./polyfill": "./target/js/okta-sign-in.polyfill.js",
"./css/*": "./target/css/*",
"./mocks": "./playground/mocks/server.js"
},
"scripts": {
"clean": "rimraf target && rimraf dist && rimraf build2",
"clean:esm": "rimraf target/esm",
"codegen": "./scripts/codegen.sh",
"find-internal-packages": "node scripts/find-internal-packages",
"generate-phone-codes": "node scripts/buildtools generate-phone-codes",
"generate-config": "node scripts/buildtools generate-language-config",
"release-update": "./scripts/release-update.sh",
"retirejs": "retire --js --jspath target/js --package",
"lint:ci": "yarn codegen && yarn lint",
"lint:esm": "eslint --no-ignore --no-eslintrc --no-inline-config --config scripts/buildtools/eslint/.eslintrc.esm.js --ext .js target/esm",
"lint:cdn": "eslint --no-ignore --no-eslintrc --no-inline-config --config scripts/buildtools/eslint/.eslintrc.cdn.js dist/dist/js/okta-sign-in.min.js",
"lint:types": "eslint --no-ignore --no-eslintrc --no-inline-config --config scripts/buildtools/eslint/.eslintrc.types.js --ext .ts types",
"lint:types:report": "eslint -f checkstyle -o build2/OSW-eslint-types-checkstyle-result.xml --no-ignore --no-eslintrc --no-inline-config --config scripts/buildtools/eslint/.eslintrc.types.js --ext .ts types",
"lint:eslint": "yarn lint:types && eslint . --ext .js --ext .ts",
"lint:eslint:report": "eslint -f checkstyle -o build2/OSW-eslint-checkstyle-result.xml . --quiet",
"lint:stylelint": "stylelint assets/sass/",
"lint:stylelint:report": "stylelint --custom-formatter node_modules/stylelint-checkstyle-formatter assets/sass/ > build2/OSW-stylelint-checkstyle-result.xml",
"lint": "mkdir -p build2 && run-p -c lint:eslint lint:stylelint",
"lint:report": "mkdir -p build2 && run-p -c lint:eslint:report lint:types:report lint:stylelint:report",
"test": "node scripts/buildtools test",
"prestart:basic": "grunt copy:e2e-pages",
"test:e2e": "yarn workspace @okta/e2e test",
"test:e2e:lang": "yarn workspace @okta/e2e test:lang",
"test:testcafe-setup": "mkdir -p test-reports/testcafe && yarn start --mock mockDuo --open false",
"test:testcafe-run": "yarn test -t testcafe --reporter spec,xunit:build2/reports/junit/testcafe-results.xml",
"test:testcafe-run-mobile": "OKTA_SIW_MOBILE=true yarn test -t testcafe --reporter spec,xunit:build2/reports/junit/testcafe-results.xml",
"test:testcafe-ci": "OKTA_SIW_SKIP_FLAKY=true run-p -r test:testcafe-setup test:testcafe-run -- 2>/dev/null",
"test:testcafe-ci-mobile": "OKTA_SIW_SKIP_FLAKY=true run-p -r test:testcafe-setup test:testcafe-run-mobile -- 2>/dev/null",
"test:testcafe-ci-flaky": "OKTA_SIW_ONLY_FLAKY=true yarn test:testcafe-ci",
"test:testcafe-en-leaks-setup": "mkdir -p test-reports/testcafe && grunt exec:pseudo-loc && yarn start --open false",
"test:testcafe-run-en-leaks": "OKTA_SIW_EN_LEAKS=true yarn test -t testcafe --reporter spec",
"test:testcafe-run-en-leaks-ci": "OKTA_SIW_EN_LEAKS=true yarn test -t testcafe --reporter xunit:build2/reports/junit/testcafe-results.xml",
"test:enleaks-ci": "run-p -r test:testcafe-en-leaks-setup test:testcafe-run-en-leaks-ci -- 2>/dev/null",
"test:enleaks": "run-p -r test:testcafe-en-leaks-setup test:testcafe-run-en-leaks -- 2>/dev/null",
"test:tsd": "yarn workspace @test/types test",
"test:tsd:ci": "yarn codegen && yarn test:tsd",
"build:esm": "yarn clean:esm && yarn build:rollup-release && yarn lint:esm",
"build:dev": "grunt build:dev",
"build:release": "grunt build:release",
"build:rollup-dev": "rollup -c",
"build:rollup-release": "rollup -c rollup.release.config.js",
"build:webpack-dev": "webpack --config webpack.dev.config.js",
"build:webpack-release": "webpack --config webpack.release.config.js",
"start": "node scripts/buildtools start",
"start:ie11": "IE11_COMPAT_MODE=true OKTA_SIW_HOST=0.0.0.0 DISABLE_CSP=1 ENTRY=default yarn start --watch",
"start:test:app": "yarn workspace @okta/test.app start",
"mock:device-authenticator": "MOCK_SPEC_DIR_NAME=spec-device-authenticator MOCK_SERVER_PORT=6512 node ./playground/mocks/server.js",
"clean:types": "grunt clean:types",
"generate:types": "ttsc --noEmit false --declaration --emitDeclarationOnly --declarationMap",
"copy:types": "grunt copy:types",
"build:types": "yarn clean:types && yarn generate:types && yarn copy:types",
"test:parity-setup": "mkdir -p test-reports/testcafe && yarn generate-config && ENTRY=debugger yarn build:webpack-release && yarn workspace v3 dev",
"test:parity-en-leaks-setup": "mkdir -p test-reports/testcafe && grunt assets && grunt exec:pseudo-loc && yarn workspace v3 dev",
"test:parity-run": "OKTA_SIW_GEN3=true yarn testcafe --reporter spec,xunit:build2/reports/junit/testcafe-results.xml",
"test:parity-run-mobile": "OKTA_SIW_GEN3=true OKTA_SIW_MOBILE=true yarn testcafe --reporter spec,xunit:build2/reports/junit/testcafe-results.xml",
"test:parity-ci": "OKTA_SIW_SKIP_FLAKY=true yarn codegen && run-p -r test:parity-setup test:parity-run",
"test:parity-ci-mobile": "OKTA_SIW_SKIP_FLAKY=true yarn codegen && run-p -r test:parity-setup test:parity-run-mobile",
"test:parity-ci-flaky": "OKTA_SIW_GEN3=true OKTA_SIW_ONLY_FLAKY=true yarn test:parity-ci",
"test:parity-enleaks-ci": "yarn codegen && run-p -r test:parity-en-leaks-setup test:testcafe-run-en-leaks-ci -- 2>/dev/null",
"test:parity-enleaks": "run-p -r test:parity-en-leaks-setup test:testcafe-run-en-leaks -- 2>/dev/null",
"postinstall": "patch-package"
},
"devDependencies": {
"@babel/cli": "^7.17.6",
"@babel/core": "^7.17.9",
"@babel/eslint-parser": "^7.24.5",
"@babel/plugin-proposal-class-properties": "^7.16.7",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7",
"@babel/plugin-proposal-optional-chaining": "^7.14.5",
"@babel/plugin-transform-modules-commonjs": "^7.10.1",
"@babel/plugin-transform-runtime": "^7.10.3",
"@babel/preset-env": "^7.15.6",
"@babel/preset-typescript": "^7.23.2",
"@babel/register": "^7.15.3",
"@babel/runtime": "^7.10.3",
"@babel/runtime-corejs3": "^7.10.3",
"@okta/eslint-plugin-okta": "0.5.0",
"@peculiar/webcrypto": "^1.4.3",
"@rollup/plugin-alias": "^3.1.9",
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-commonjs": "^21.1.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.2.1",
"@rollup/plugin-replace": "^4.0.0",
"@rollup/plugin-strip": "^2.1.0",
"@testcafe-community/axe": "^3.5.0",
"@testing-library/testcafe": "^4.4.1",
"@typescript-eslint/eslint-plugin": "^4.16.1",
"@typescript-eslint/parser": "^4.16.1",
"@zerollup/ts-transform-paths": "^1.7.18",
"autoprefixer": "^10.3.4",
"axe-core": "^4.6.3",
"axios": "^0.28.0",
"babel-jest": "^26.6.3",
"babel-loader": "^8.2.5",
"babel-plugin-add-module-exports": "^1.0.4",
"babel-plugin-import": "^1.13.8",
"babel-plugin-istanbul": "^6.0.0",
"babel-plugin-transform-amd-to-commonjs": "^1.5.0",
"babel-plugin-tsconfig-paths-module-resolver": "^1.0.3",
"chalk": "^2.4.2",
"concurrently": "^5.1.0",
"core-js": "^3.9.1",
"cors": "^2.8.5",
"css-loader": "^6.11.0",
"cssnano": "^6.0.0",
"dotenv": "^8.0.0",
"eslint": "^7.23.0",
"eslint-import-resolver-typescript": "^3.5.0",
"eslint-import-resolver-webpack": "^0.13.2",
"eslint-plugin-compat": "4.0.2",
"eslint-plugin-dirs": "^0.0.4",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jasmine": "^4.1.0",
"eslint-plugin-json": "^2.1.2",
"eslint-plugin-local-rules": "^0.1.1",
"eslint-plugin-no-only-tests": "^2.4.0",
"eslint-plugin-testcafe-extended": "^0.2.0",
"eslint-plugin-webdriverio": "^1.0.1",
"event-hooks-webpack-plugin": "^2.3.0",
"expect": "^27.4.6",
"express": "^4.19.2",
"fs-extra": "^8.1.0",
"glob": "^7.1.3",
"grunt": "^1.5.2",
"grunt-cli": "^1.4.3",
"grunt-contrib-clean": "^2.0.1",
"grunt-contrib-connect": "^3.0.0",
"grunt-contrib-copy": "^1.0.0",
"grunt-contrib-watch": "^1.1.0",
"grunt-exec": "^3.0.0",
"grunt-properties-to-json": "^0.6.0",
"isomorphic-fetch": "^3.0.0",
"jasmine": "^4.0.1",
"jasmine-ajax": "^4.0.0",
"jasmine-core": "2.99.1",
"jasmine-reporters": "^2.5.0",
"jest": "^26.6.3",
"jest-canvas-mock": "^2.3.1",
"jest-fetch-mock": "^3.0.3",
"jest-junit": "^13.1.0",
"jest-runner-tsd": "^3.0.0",
"junit-report-builder": "^1.3.2",
"load-grunt-tasks": "^5.0.0",
"mini-css-extract-plugin": "^2.7.5",
"mockdate": "^3.0.5",
"nodemon": "^2.0.7",
"npm-check": "^6.0.1",
"npm-run-all": "^4.1.5",
"patch-package": "^8.0.0",
"pixelmatch": "^5.3.0",
"pngjs": "^7.0.0",
"postcss": "^8.4.38",
"postcss-loader": "^7.3.4",
"postcss-scss": "^4.0.9",
"postinstall-postinstall": "^2.1.0",
"regenerator-runtime": "^0.13.7",
"retire": "^2.0.3",
"rimraf": "^4.3.0",
"rollup": "^2.70.2",
"rollup-plugin-amd": "^4.0.0",
"rollup-plugin-multi-input": "^1.3.1",
"rollup-plugin-visualizer": "^5.6.0",
"sass": "^1.38.0",
"sass-loader": "^13.2.2",
"shelljs": "^0.8.5",
"source-map-loader": "^3.0.1",
"stylelint": "^15.11.0",
"stylelint-checkstyle-formatter": "^0.1.2",
"stylelint-scss": "^5.3.2",
"terser-webpack-plugin": "^5.2.4",
"testcafe": "^1.20.1",
"time-grunt": "^2.0.0",
"ts-node": "^10.9.1",
"tsd": "^0.20.0",
"ttypescript": "^1.5.15",
"typescript": "~4.5.5",
"wait-for-expect": "^3.0.2",
"wait-on": "^7.2.0",
"webpack": "^5.91.0",
"webpack-bundle-analyzer": "^4.5.0",
"webpack-cli": "^4.8.0",
"webpack-dev-server": "^4.15.2"
},
"dependencies": {
"@okta/okta-auth-js": "^7.7.0",
"@sindresorhus/to-milliseconds": "^1.0.0",
"@types/backbone": "^1.4.15",
"@types/eslint-scope": "^3.7.3",
"@types/jquery": "^3.5.14",
"@types/jqueryui": "^1.12.16",
"@types/q": "^1.5.5",
"@types/selectize": "^0.12.35",
"@types/underscore": "^1.11.4",
"chokidar": "^3.5.1",
"clipboard": "^1.5.16",
"cross-fetch": "^3.1.5",
"handlebars": "^4.7.7",
"jquery": "^3.6.0",
"parse-ms": "^2.0.0",
"q": "1.4.1",
"u2f-api-polyfill": "0.4.3",
"underscore": "1.13.1"
},
"optionalDependencies": {
"fsevents": "*"
},
"resolutions": {
"chokidar": "^3.5.1",
"braces": "3.0.3",
"dot-prop": "^5.3.0",
"ejs": "^3.1.9",
"ini": "^1.3.8",
"is-installed-globally": "^0.4.0",
"grunt/minimatch": "^3.1.2",
"**/globule/minimatch": "^3.1.2",
"ansi-regex": "^5.0.1",
"testcafe/**/jsonwebtoken": "^9.0.0",
"**/loader-utils/json5": "^1.0.2",
"**/babel-loader/loader-utils/json5": "^2.2.2",
"**/saucelabs": "^7.5.0",
"**/semver": "^7.5.4",
"**/testcafe-hammerhead/tough-cookie": "^4.1.4",
"stylis": "^4.3.0",
"**/debug": "^4.3.4",
"**/mout": "^1.2.4"
},
"workspaces": {
"packages": [
".",
"env",
"test/app",
"test/e2e",
"test/types",
"playground",
"playground/mocks",
"packages/@okta/courage-dist",
"src/v3",
"test/vrt"
],
"nohoist": [
"**/@wdio/**",
"**/@types/ajv-errors",
"**/@types/ajv-errors/**",
"**/@types/eslint-scope",
"**/eslint-scope"
]
},
"packageManager": "yarn@1.22.19",
"tsd": {
"directory": "test/types"
},
"msw": {
"workerDirectory": "playground"
}
}