wapi-client 0.9.1 → 0.9.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/dist/api/ws-client.cjs +1 -1
- package/dist/api/ws-client.d.ts +0 -1
- package/dist/api/ws-client.js +1 -1
- package/dist/client.cjs +1 -1
- package/dist/client.js +1 -1
- package/dist/fns/import-data/import-data.cjs +22 -0
- package/dist/fns/import-data/import-data.js +22 -0
- package/dist/fns/import-data/import-data.node.browser.cjs +22 -0
- package/dist/fns/import-data/import-data.node.browser.js +22 -0
- package/dist/fns/import-data/import-data.node.cjs +22 -0
- package/dist/fns/import-data/import-data.node.js +22 -0
- package/dist/lib/errors.d.ts +1 -1
- package/dist/lib/isomorphic/node/fetch.cjs +20 -17
- package/dist/lib/isomorphic/node/fetch.js +20 -17
- package/dist/lib/isomorphic/node/streams.d.ts +0 -2
- package/dist/lib/validator.browser.cjs +611 -960
- package/dist/lib/validator.browser.js +611 -960
- package/dist/lib/validator.cjs +1 -1
- package/dist/lib/validator.js +1 -1
- package/dist/lib/ws-types.d.ts +0 -1
- package/dist/types/index.d.ts +1 -4
- package/dist/wapi-client-web.iife.js +6 -11
- package/dist/wapi-client.iife.js +6 -11
- package/package.json +7 -7
package/dist/lib/validator.cjs
CHANGED
|
@@ -257,7 +257,7 @@ var ajv = new import_ajv.default({
|
|
|
257
257
|
coerceTypes: true,
|
|
258
258
|
// Client side allows looser input, API will not
|
|
259
259
|
formats: {
|
|
260
|
-
validkey: /^[
|
|
260
|
+
validkey: /^(?!.*\.\.)[a-zA-Z_][a-zA-Z0-9_.-]*[a-zA-Z0-9_-]$/
|
|
261
261
|
},
|
|
262
262
|
strict: false
|
|
263
263
|
});
|
package/dist/lib/validator.js
CHANGED
|
@@ -224,7 +224,7 @@ var ajv = new Ajv({
|
|
|
224
224
|
coerceTypes: true,
|
|
225
225
|
// Client side allows looser input, API will not
|
|
226
226
|
formats: {
|
|
227
|
-
validkey: /^[
|
|
227
|
+
validkey: /^(?!.*\.\.)[a-zA-Z_][a-zA-Z0-9_.-]*[a-zA-Z0-9_-]$/
|
|
228
228
|
},
|
|
229
229
|
strict: false
|
|
230
230
|
});
|
package/dist/lib/ws-types.d.ts
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
/// <reference types="node" />
|
|
3
|
-
/// <reference types="node" />
|
|
4
1
|
declare module 'wapi-client/lib/ws-types' {
|
|
5
2
|
import WebSocket from 'modern-isomorphic-ws';
|
|
6
3
|
export interface ErrorEvent {
|
|
@@ -1498,7 +1495,7 @@ declare module 'wapi-client/lib/errors' {
|
|
|
1498
1495
|
toJSON(): IJSONRPCError;
|
|
1499
1496
|
}
|
|
1500
1497
|
export const ERROR_CODE_TO_TYPE: {
|
|
1501
|
-
[key: number]:
|
|
1498
|
+
[key: number]: ERROR_TYPES;
|
|
1502
1499
|
};
|
|
1503
1500
|
export function getError({ code, message, data }: IJSONRPCError): WAPIError;
|
|
1504
1501
|
export const ERROR_MESSAGES: {
|