@mountainpass/waychaser 4.0.38 → 5.0.2
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/CHANGELOG.md +18 -0
- package/README.md +37 -26
- package/dist/augment-options.d.ts +29 -0
- package/dist/augment-options.js +70 -0
- package/dist/augment-options.js.map +1 -0
- package/dist/expand-operation.d.ts +5 -0
- package/dist/expand-operation.js +78 -0
- package/dist/expand-operation.js.map +1 -0
- package/dist/handlers/hal/de-curie.d.ts +9 -0
- package/dist/handlers/hal/de-curie.js +50 -0
- package/dist/handlers/hal/de-curie.js.map +1 -0
- package/dist/handlers/hal/hal-handler.d.ts +6 -0
- package/dist/handlers/hal/hal-handler.js +91 -0
- package/dist/handlers/hal/hal-handler.js.map +1 -0
- package/dist/handlers/hal/map-hal-link-to-operation.d.ts +7 -0
- package/dist/handlers/hal/map-hal-link-to-operation.js +40 -0
- package/dist/handlers/hal/map-hal-link-to-operation.js.map +1 -0
- package/dist/handlers/link-header/link-header-handler.d.ts +7 -0
- package/dist/handlers/link-header/link-header-handler.js +83 -0
- package/dist/handlers/link-header/link-header-handler.js.map +1 -0
- package/dist/handlers/location-header/location-header-handler.d.ts +5 -0
- package/dist/handlers/location-header/location-header-handler.js +16 -0
- package/dist/handlers/location-header/location-header-handler.js.map +1 -0
- package/dist/handlers/siren/map-siren-action-to-operation.d.ts +6 -0
- package/dist/handlers/siren/map-siren-action-to-operation.js +63 -0
- package/dist/handlers/siren/map-siren-action-to-operation.js.map +1 -0
- package/dist/handlers/siren/map-siren-link-to-operation.d.ts +13 -0
- package/dist/handlers/siren/map-siren-link-to-operation.js +43 -0
- package/dist/handlers/siren/map-siren-link-to-operation.js.map +1 -0
- package/dist/handlers/siren/siren-action-handler.d.ts +5 -0
- package/dist/handlers/siren/siren-action-handler.js +46 -0
- package/dist/handlers/siren/siren-action-handler.js.map +1 -0
- package/dist/handlers/siren/siren-handler.d.ts +6 -0
- package/dist/handlers/siren/siren-handler.js +48 -0
- package/dist/handlers/siren/siren-handler.js.map +1 -0
- package/dist/handlers/siren/siren-link-handler.d.ts +6 -0
- package/dist/handlers/siren/siren-link-handler.js +59 -0
- package/dist/handlers/siren/siren-link-handler.js.map +1 -0
- package/dist/operation-array.d.ts +12 -0
- package/dist/operation-array.js +110 -0
- package/dist/operation-array.js.map +1 -0
- package/dist/operation.d.ts +24 -0
- package/dist/operation.js +304 -0
- package/dist/operation.js.map +1 -0
- package/dist/util/media-types.d.ts +5 -0
- package/dist/util/media-types.js +8 -0
- package/dist/util/media-types.js.map +1 -0
- package/dist/util/method-can-have-body.d.ts +4 -0
- package/dist/util/method-can-have-body.js +11 -0
- package/dist/util/method-can-have-body.js.map +1 -0
- package/dist/util/parse-accept.d.ts +6 -0
- package/dist/util/parse-accept.js +85 -0
- package/dist/util/parse-accept.js.map +1 -0
- package/dist/util/parse-operations.d.ts +14 -0
- package/dist/util/parse-operations.js +94 -0
- package/dist/util/parse-operations.js.map +1 -0
- package/dist/util/preferred-content-type.d.ts +6 -0
- package/dist/util/preferred-content-type.js +23 -0
- package/dist/util/preferred-content-type.js.map +1 -0
- package/dist/util/uri-template-lite.d.ts +1 -0
- package/dist/util/uri-template-lite.js +31 -0
- package/dist/util/uri-template-lite.js.map +1 -0
- package/dist/waychaser.d.ts +130 -0
- package/dist/waychaser.es.js +2331 -0
- package/dist/waychaser.es.min.js +15 -0
- package/dist/waychaser.js +582 -4527
- package/dist/waychaser.js.map +1 -1
- package/package.json +36 -63
- package/dist/waychaser.cjs +0 -14
- package/dist/waychaser.cjs.map +0 -1
- package/dist/waychaser.min.js +0 -7
- package/dist/waychaser.min.js.map +0 -1
- package/dist/waychaser.mjs +0 -14
- package/dist/waychaser.mjs.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mountainpass/waychaser",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"description": "Client library for HATEOAS level 3 RESTful APIs that provide hypermedia controls",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,11 +33,10 @@
|
|
|
33
33
|
"siren",
|
|
34
34
|
"siren-client"
|
|
35
35
|
],
|
|
36
|
-
"main": "dist/waychaser.
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"module": "dist/waychaser.mjs",
|
|
36
|
+
"main": "dist/waychaser.js",
|
|
37
|
+
"module": "dist/waychaser.es.js",
|
|
38
|
+
"browser": "dist/waychaser.es.js",
|
|
39
|
+
"types": "dist/waychaser.d.ts",
|
|
41
40
|
"engines": {
|
|
42
41
|
"node": ">=14.17.0"
|
|
43
42
|
},
|
|
@@ -47,12 +46,11 @@
|
|
|
47
46
|
"scripts": {
|
|
48
47
|
"env": "env",
|
|
49
48
|
"build:browser": "rollup --config rollup.config.${npm_lifecycle_event#build:}.js",
|
|
50
|
-
"build:node": "
|
|
49
|
+
"build:node": "tsc --project tsconfig.production.json",
|
|
51
50
|
"build": "npm-run-all --sequential build:*",
|
|
52
|
-
"serve": "npm run build && API_PORT=${npm_package_config_TEST_API_PORT}
|
|
51
|
+
"serve": "npm run build && API_PORT=${npm_package_config_TEST_API_PORT} ts-node scripts/development-server.js",
|
|
53
52
|
"prepack": "npm run build",
|
|
54
53
|
"lint:sh": "shellcheck **/*.sh",
|
|
55
|
-
"lint:standardjs": "standard --verbose",
|
|
56
54
|
"lint:js": "eslint .",
|
|
57
55
|
"lint:js:fix": "npm run ${npm_lifecycle_event%:fix} -- --fix",
|
|
58
56
|
"lint:json+": "prettier --check .",
|
|
@@ -134,11 +132,12 @@
|
|
|
134
132
|
"/dist/**/*.mjs",
|
|
135
133
|
"/dist/**/*.mjs.map",
|
|
136
134
|
"/dist/**/*.js",
|
|
137
|
-
"/dist/**/*.js.map"
|
|
135
|
+
"/dist/**/*.js.map",
|
|
136
|
+
"/dist/**/*.d.ts"
|
|
138
137
|
],
|
|
139
138
|
"dependencies": {
|
|
140
|
-
"
|
|
141
|
-
"
|
|
139
|
+
"@mountainpass/problem-document": "^0.0.45",
|
|
140
|
+
"@types/flat": "^5.0.2",
|
|
142
141
|
"flat": "^5.0.2",
|
|
143
142
|
"form-data": "^4.0.0",
|
|
144
143
|
"http-link-header": "^1.0.2",
|
|
@@ -147,36 +146,18 @@
|
|
|
147
146
|
"uri-template-lite": "^20.5.0"
|
|
148
147
|
},
|
|
149
148
|
"devDependencies": {
|
|
150
|
-
"@babel/cli": "^7.6.2",
|
|
151
|
-
"@babel/core": "^7.12.3",
|
|
152
|
-
"@babel/eslint-parser": "^7.14.3",
|
|
153
|
-
"@babel/node": "^7.6.2",
|
|
154
|
-
"@babel/plugin-proposal-class-properties": "^7.5.5",
|
|
155
|
-
"@babel/plugin-syntax-top-level-await": "^7.12.13",
|
|
156
|
-
"@babel/plugin-transform-arrow-functions": "^7.12.1",
|
|
157
|
-
"@babel/plugin-transform-modules-commonjs": "^7.12.1",
|
|
158
|
-
"@babel/plugin-transform-runtime": "^7.14.5",
|
|
159
|
-
"@babel/preset-env": "^7.6.2",
|
|
160
|
-
"@babel/register": "^7.7.0",
|
|
161
|
-
"@babel/runtime": "^7.5.0",
|
|
162
149
|
"@commitlint/cli": "^13.1.0",
|
|
163
150
|
"@commitlint/config-conventional": "^12.0.0",
|
|
164
|
-
"@cucumber/cucumber": "^7.
|
|
165
|
-
"@istanbuljs/nyc-config-babel": "^3.0.0",
|
|
166
|
-
"@rollup/plugin-babel": "^5.3.0",
|
|
151
|
+
"@cucumber/cucumber": "^7.3.2",
|
|
167
152
|
"@rollup/plugin-commonjs": "^20.0.0",
|
|
168
153
|
"@rollup/plugin-json": "^4.1.0",
|
|
169
154
|
"@rollup/plugin-node-resolve": "^13.0.0",
|
|
170
|
-
"@
|
|
155
|
+
"@rollup/plugin-typescript": "^8.3.0",
|
|
156
|
+
"@types/chai": "^4.3.0",
|
|
157
|
+
"@types/node": "^17.0.8",
|
|
158
|
+
"@typescript-eslint/eslint-plugin": "^5.12.0",
|
|
159
|
+
"@typescript-eslint/parser": "^5.12.0",
|
|
171
160
|
"aws4": "^1.11.0",
|
|
172
|
-
"babel-eslint": "^10.0.2",
|
|
173
|
-
"babel-loader": "^8.0.0",
|
|
174
|
-
"babel-plugin-add-module-exports": "^1.0.4",
|
|
175
|
-
"babel-plugin-dynamic-import-webpack": "^1.1.0",
|
|
176
|
-
"babel-plugin-istanbul": "^6.0.0",
|
|
177
|
-
"babel-plugin-transform-imports": "^2.0.0",
|
|
178
|
-
"babel-polyfill": "^6.26.0",
|
|
179
|
-
"babel-preset-env": "^1.7.0",
|
|
180
161
|
"body-parser": "^1.19.0",
|
|
181
162
|
"browserstack-local": "^1.4.8",
|
|
182
163
|
"bufferutil": "^4.0.2",
|
|
@@ -187,26 +168,29 @@
|
|
|
187
168
|
"conventional-changelog-cli": "^2.1.1",
|
|
188
169
|
"conventional-recommended-bump": "^6.1.0",
|
|
189
170
|
"core-js": "^3.7.0",
|
|
171
|
+
"cross-fetch": "^3.1.5",
|
|
172
|
+
"cucumber-tsflow": "^4.0.0-preview.7",
|
|
190
173
|
"dateformat": "^4.4.1",
|
|
174
|
+
"debug": "^4.3.3",
|
|
191
175
|
"depcheck": "^1.2.0",
|
|
192
176
|
"dirty-chai": "^2.0.1",
|
|
193
|
-
"eslint": "^
|
|
194
|
-
"eslint-config-prettier": "^8.
|
|
195
|
-
"eslint-
|
|
196
|
-
"eslint-
|
|
177
|
+
"eslint": "^8",
|
|
178
|
+
"eslint-config-prettier": "^8.5.0",
|
|
179
|
+
"eslint-import-resolver-node": "^0.3.6",
|
|
180
|
+
"eslint-import-resolver-typescript": "^2.7.1",
|
|
181
|
+
"eslint-plugin-import": "^2.26.0",
|
|
182
|
+
"eslint-plugin-jsdoc": "^39.2.9",
|
|
183
|
+
"eslint-plugin-jsonc": "^2.3.0",
|
|
184
|
+
"eslint-plugin-no-secrets": "^0.8.9",
|
|
185
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
186
|
+
"eslint-plugin-unicorn": "^42.0.0",
|
|
197
187
|
"eslint-plugin-chai-friendly": "^0.7.1",
|
|
198
188
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
199
|
-
"eslint-plugin-import": "^2.22.1",
|
|
200
189
|
"eslint-plugin-istanbul": "^0.1.2",
|
|
201
|
-
"eslint-plugin-jsdoc": "^36.0.3",
|
|
202
190
|
"eslint-plugin-json": "^3.0.0",
|
|
203
|
-
"eslint-plugin-markdown": "^2.1.0",
|
|
204
|
-
"eslint-plugin-md": "^1.0.19",
|
|
205
191
|
"eslint-plugin-node": "^11.1.0",
|
|
206
|
-
"eslint-plugin-
|
|
207
|
-
"eslint-plugin-promise": "^5.1.0",
|
|
192
|
+
"eslint-plugin-promise": "^6.0.0",
|
|
208
193
|
"eslint-plugin-security": "^1.4.0",
|
|
209
|
-
"eslint-plugin-unicorn": "^35.0.0",
|
|
210
194
|
"express": "^4.16.3",
|
|
211
195
|
"fs-extra": "^10.0.0",
|
|
212
196
|
"geckodriver": "^1.20.0",
|
|
@@ -227,17 +211,19 @@
|
|
|
227
211
|
"npm-run-all": "^4.1.5",
|
|
228
212
|
"nyc": "^15.1.0",
|
|
229
213
|
"prettier": "2.3.1",
|
|
230
|
-
"prettier-config-standard": "^4.0.0",
|
|
231
214
|
"rollup": "^2.52.1",
|
|
232
215
|
"rollup-plugin-terser": "^7.0.2",
|
|
233
216
|
"selenium-webdriver": "^4.0.0-beta.4",
|
|
234
217
|
"shellcheck": "^1.0.0",
|
|
235
218
|
"snyk": "^1.431.1",
|
|
236
|
-
"standard": "^16.0.3",
|
|
237
219
|
"start-server-and-test": "^1.11.7",
|
|
238
220
|
"temp": "^0.9.4",
|
|
221
|
+
"ts-node": "^10.5.0",
|
|
222
|
+
"tslib": "^2.3.1",
|
|
223
|
+
"typescript": "^4.5.4",
|
|
239
224
|
"unique-names-generator": "^4.3.1",
|
|
240
|
-
"utf-8-validate": "^5.0.3"
|
|
225
|
+
"utf-8-validate": "^5.0.3",
|
|
226
|
+
"zod": "^3.15.1"
|
|
241
227
|
},
|
|
242
228
|
"lint-staged": {
|
|
243
229
|
"*.{js,md}": [
|
|
@@ -263,18 +249,5 @@
|
|
|
263
249
|
"pre-push": "npm run pre-push",
|
|
264
250
|
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
|
265
251
|
}
|
|
266
|
-
},
|
|
267
|
-
"standard": {
|
|
268
|
-
"parser": "babel-eslint",
|
|
269
|
-
"parserOptions": {
|
|
270
|
-
"sourceType": "module"
|
|
271
|
-
},
|
|
272
|
-
"plugins": [
|
|
273
|
-
"security",
|
|
274
|
-
"unicorn",
|
|
275
|
-
"promise",
|
|
276
|
-
"istanbul",
|
|
277
|
-
"jsdoc"
|
|
278
|
-
]
|
|
279
252
|
}
|
|
280
253
|
}
|