@utiliread/http 1.19.4 → 1.19.6

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.
@@ -2,10 +2,10 @@ declare const _default: {};
2
2
  export default _default;
3
3
  declare module "@utiliread/http" {
4
4
  interface HttpBuilder {
5
- withJsonPatch(operations: Operation[]): this;
5
+ withJsonPatch(operations: import("@utiliread/jsonpatch").Operation[]): this;
6
6
  }
7
7
  interface HttpBuilderOfT<T> {
8
- withJsonPatch(operations: Operation[]): this;
8
+ withJsonPatch(operations: import("@utiliread/jsonpatch").Operation[]): this;
9
9
  }
10
10
  }
11
11
 
@@ -1 +1 @@
1
- {"mappings":";AAOA,wBAAkB;AAGlB,eAAe,iBAAiB,CAAC;IAC/B,UAAU,WAAW;QACnB,aAAa,CAAC,UAAU,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;KAC9C;IAED,UAAU,cAAc,CAAC,CAAC;QACxB,aAAa,CAAC,UAAU,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;KAC9C;CACF","sources":["plugins/jsonpatch/src/plugins/jsonpatch/src/index.ts","plugins/jsonpatch/src/index.ts"],"sourcesContent":[null,"import { HttpBuilder, HttpBuilderOfT } from \"@utiliread/http\";\r\n\r\nimport { Operation } from \"@utiliread/jsonpatch\";\r\nimport { serialize } from \"@utiliread/json\";\r\n\r\n// Force declarations to be module augmentations instead of ambient module declarations\r\n// https://www.typescriptlang.org/docs/handbook/modules/reference.html#ambient-modules\r\nexport default {};\r\n\r\n// https://www.typescriptlang.org/docs/handbook/declaration-merging.html#module-augmentation\r\ndeclare module \"@utiliread/http\" {\r\n interface HttpBuilder {\r\n withJsonPatch(operations: Operation[]): this;\r\n }\r\n \r\n interface HttpBuilderOfT<T> {\r\n withJsonPatch(operations: Operation[]): this;\r\n }\r\n}\r\n\r\nHttpBuilder.prototype.withJsonPatch = function (\r\n this: HttpBuilder,\r\n operations: Operation[]\r\n) {\r\n this.message.content = serialize(operations);\r\n this.message.contentType = \"application/json-patch+json\";\r\n return this;\r\n};\r\n\r\nHttpBuilderOfT.prototype.withJsonPatch = function <T>(\r\n this: HttpBuilderOfT<T>,\r\n operations: Operation[]\r\n) {\r\n this.message.content = serialize(operations);\r\n this.message.contentType = \"application/json-patch+json\";\r\n return this;\r\n};\r\n"],"names":[],"version":3,"file":"jsonpatch.d.ts.map"}
1
+ {"mappings":";AAMA,wBAAkB;AAGlB,eAAe,iBAAiB,CAAC;IAC/B,UAAU,WAAW;QACnB,aAAa,CAAC,UAAU,EAAE,OAAO,sBAAsB,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;KAC7E;IAED,UAAU,cAAc,CAAC,CAAC;QACxB,aAAa,CAAC,UAAU,EAAE,OAAO,sBAAsB,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;KAC7E;CACF","sources":["plugins/jsonpatch/src/plugins/jsonpatch/src/index.ts","plugins/jsonpatch/src/index.ts"],"sourcesContent":[null,"import { HttpBuilder, HttpBuilderOfT } from \"@utiliread/http\";\r\n\r\nimport { serialize } from \"@utiliread/json\";\r\n\r\n// Force declarations to be module augmentations instead of ambient module declarations\r\n// https://www.typescriptlang.org/docs/handbook/modules/reference.html#ambient-modules\r\nexport default {};\r\n\r\n// https://www.typescriptlang.org/docs/handbook/declaration-merging.html#module-augmentation\r\ndeclare module \"@utiliread/http\" {\r\n interface HttpBuilder {\r\n withJsonPatch(operations: import(\"@utiliread/jsonpatch\").Operation[]): this;\r\n }\r\n\r\n interface HttpBuilderOfT<T> {\r\n withJsonPatch(operations: import(\"@utiliread/jsonpatch\").Operation[]): this;\r\n }\r\n}\r\n\r\nHttpBuilder.prototype.withJsonPatch = function (\r\n this: HttpBuilder,\r\n operations: import(\"@utiliread/jsonpatch\").Operation[]\r\n) {\r\n this.message.content = serialize(operations);\r\n this.message.contentType = \"application/json-patch+json\";\r\n return this;\r\n};\r\n\r\nHttpBuilderOfT.prototype.withJsonPatch = function <T>(\r\n this: HttpBuilderOfT<T>,\r\n operations: import(\"@utiliread/jsonpatch\").Operation[]\r\n) {\r\n this.message.content = serialize(operations);\r\n this.message.contentType = \"application/json-patch+json\";\r\n return this;\r\n};\r\n"],"names":[],"version":3,"file":"jsonpatch.d.ts.map"}
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;IAKA,uFAAuF;AACvF,sFAAsF;AACtF,2CAAe,CAAC;AAahB,CAAA,GAAA,gCAAU,EAAE,SAAS,CAAC,aAAa,GAAG,SAEpC,UAAuB;IAEvB,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG,CAAA,GAAA,8BAAQ,EAAE;IACjC,IAAI,CAAC,OAAO,CAAC,WAAW,GAAG;IAC3B,OAAO,IAAI;AACb;AAEA,CAAA,GAAA,mCAAa,EAAE,SAAS,CAAC,aAAa,GAAG,SAEvC,UAAuB;IAEvB,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG,CAAA,GAAA,8BAAQ,EAAE;IACjC,IAAI,CAAC,OAAO,CAAC,WAAW,GAAG;IAC3B,OAAO,IAAI;AACb","sources":["plugins/jsonpatch/src/index.ts"],"sourcesContent":["import { HttpBuilder, HttpBuilderOfT } from \"@utiliread/http\";\r\n\r\nimport { Operation } from \"@utiliread/jsonpatch\";\r\nimport { serialize } from \"@utiliread/json\";\r\n\r\n// Force declarations to be module augmentations instead of ambient module declarations\r\n// https://www.typescriptlang.org/docs/handbook/modules/reference.html#ambient-modules\r\nexport default {};\r\n\r\n// https://www.typescriptlang.org/docs/handbook/declaration-merging.html#module-augmentation\r\ndeclare module \"@utiliread/http\" {\r\n interface HttpBuilder {\r\n withJsonPatch(operations: Operation[]): this;\r\n }\r\n \r\n interface HttpBuilderOfT<T> {\r\n withJsonPatch(operations: Operation[]): this;\r\n }\r\n}\r\n\r\nHttpBuilder.prototype.withJsonPatch = function (\r\n this: HttpBuilder,\r\n operations: Operation[]\r\n) {\r\n this.message.content = serialize(operations);\r\n this.message.contentType = \"application/json-patch+json\";\r\n return this;\r\n};\r\n\r\nHttpBuilderOfT.prototype.withJsonPatch = function <T>(\r\n this: HttpBuilderOfT<T>,\r\n operations: Operation[]\r\n) {\r\n this.message.content = serialize(operations);\r\n this.message.contentType = \"application/json-patch+json\";\r\n return this;\r\n};\r\n"],"names":[],"version":3,"file":"jsonpatch.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;IAIA,uFAAuF;AACvF,sFAAsF;AACtF,2CAAe,CAAC;AAahB,CAAA,GAAA,gCAAU,EAAE,SAAS,CAAC,aAAa,GAAG,SAEpC,UAAsD;IAEtD,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG,CAAA,GAAA,8BAAQ,EAAE;IACjC,IAAI,CAAC,OAAO,CAAC,WAAW,GAAG;IAC3B,OAAO,IAAI;AACb;AAEA,CAAA,GAAA,mCAAa,EAAE,SAAS,CAAC,aAAa,GAAG,SAEvC,UAAsD;IAEtD,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG,CAAA,GAAA,8BAAQ,EAAE;IACjC,IAAI,CAAC,OAAO,CAAC,WAAW,GAAG;IAC3B,OAAO,IAAI;AACb","sources":["plugins/jsonpatch/src/index.ts"],"sourcesContent":["import { HttpBuilder, HttpBuilderOfT } from \"@utiliread/http\";\r\n\r\nimport { serialize } from \"@utiliread/json\";\r\n\r\n// Force declarations to be module augmentations instead of ambient module declarations\r\n// https://www.typescriptlang.org/docs/handbook/modules/reference.html#ambient-modules\r\nexport default {};\r\n\r\n// https://www.typescriptlang.org/docs/handbook/declaration-merging.html#module-augmentation\r\ndeclare module \"@utiliread/http\" {\r\n interface HttpBuilder {\r\n withJsonPatch(operations: import(\"@utiliread/jsonpatch\").Operation[]): this;\r\n }\r\n\r\n interface HttpBuilderOfT<T> {\r\n withJsonPatch(operations: import(\"@utiliread/jsonpatch\").Operation[]): this;\r\n }\r\n}\r\n\r\nHttpBuilder.prototype.withJsonPatch = function (\r\n this: HttpBuilder,\r\n operations: import(\"@utiliread/jsonpatch\").Operation[]\r\n) {\r\n this.message.content = serialize(operations);\r\n this.message.contentType = \"application/json-patch+json\";\r\n return this;\r\n};\r\n\r\nHttpBuilderOfT.prototype.withJsonPatch = function <T>(\r\n this: HttpBuilderOfT<T>,\r\n operations: import(\"@utiliread/jsonpatch\").Operation[]\r\n) {\r\n this.message.content = serialize(operations);\r\n this.message.contentType = \"application/json-patch+json\";\r\n return this;\r\n};\r\n"],"names":[],"version":3,"file":"jsonpatch.js.map"}
@@ -1 +1 @@
1
- {"mappings":";;;;;IAKA,uFAAuF;AACvF,sFAAsF;AACtF,2CAAe,CAAC;AAahB,CAAA,GAAA,kBAAU,EAAE,SAAS,CAAC,aAAa,GAAG,SAEpC,UAAuB;IAEvB,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG,CAAA,GAAA,gBAAQ,EAAE;IACjC,IAAI,CAAC,OAAO,CAAC,WAAW,GAAG;IAC3B,OAAO,IAAI;AACb;AAEA,CAAA,GAAA,qBAAa,EAAE,SAAS,CAAC,aAAa,GAAG,SAEvC,UAAuB;IAEvB,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG,CAAA,GAAA,gBAAQ,EAAE;IACjC,IAAI,CAAC,OAAO,CAAC,WAAW,GAAG;IAC3B,OAAO,IAAI;AACb","sources":["plugins/jsonpatch/src/index.ts"],"sourcesContent":["import { HttpBuilder, HttpBuilderOfT } from \"@utiliread/http\";\r\n\r\nimport { Operation } from \"@utiliread/jsonpatch\";\r\nimport { serialize } from \"@utiliread/json\";\r\n\r\n// Force declarations to be module augmentations instead of ambient module declarations\r\n// https://www.typescriptlang.org/docs/handbook/modules/reference.html#ambient-modules\r\nexport default {};\r\n\r\n// https://www.typescriptlang.org/docs/handbook/declaration-merging.html#module-augmentation\r\ndeclare module \"@utiliread/http\" {\r\n interface HttpBuilder {\r\n withJsonPatch(operations: Operation[]): this;\r\n }\r\n \r\n interface HttpBuilderOfT<T> {\r\n withJsonPatch(operations: Operation[]): this;\r\n }\r\n}\r\n\r\nHttpBuilder.prototype.withJsonPatch = function (\r\n this: HttpBuilder,\r\n operations: Operation[]\r\n) {\r\n this.message.content = serialize(operations);\r\n this.message.contentType = \"application/json-patch+json\";\r\n return this;\r\n};\r\n\r\nHttpBuilderOfT.prototype.withJsonPatch = function <T>(\r\n this: HttpBuilderOfT<T>,\r\n operations: Operation[]\r\n) {\r\n this.message.content = serialize(operations);\r\n this.message.contentType = \"application/json-patch+json\";\r\n return this;\r\n};\r\n"],"names":[],"version":3,"file":"jsonpatch.mjs.map"}
1
+ {"mappings":";;;;;IAIA,uFAAuF;AACvF,sFAAsF;AACtF,2CAAe,CAAC;AAahB,CAAA,GAAA,kBAAU,EAAE,SAAS,CAAC,aAAa,GAAG,SAEpC,UAAsD;IAEtD,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG,CAAA,GAAA,gBAAQ,EAAE;IACjC,IAAI,CAAC,OAAO,CAAC,WAAW,GAAG;IAC3B,OAAO,IAAI;AACb;AAEA,CAAA,GAAA,qBAAa,EAAE,SAAS,CAAC,aAAa,GAAG,SAEvC,UAAsD;IAEtD,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG,CAAA,GAAA,gBAAQ,EAAE;IACjC,IAAI,CAAC,OAAO,CAAC,WAAW,GAAG;IAC3B,OAAO,IAAI;AACb","sources":["plugins/jsonpatch/src/index.ts"],"sourcesContent":["import { HttpBuilder, HttpBuilderOfT } from \"@utiliread/http\";\r\n\r\nimport { serialize } from \"@utiliread/json\";\r\n\r\n// Force declarations to be module augmentations instead of ambient module declarations\r\n// https://www.typescriptlang.org/docs/handbook/modules/reference.html#ambient-modules\r\nexport default {};\r\n\r\n// https://www.typescriptlang.org/docs/handbook/declaration-merging.html#module-augmentation\r\ndeclare module \"@utiliread/http\" {\r\n interface HttpBuilder {\r\n withJsonPatch(operations: import(\"@utiliread/jsonpatch\").Operation[]): this;\r\n }\r\n\r\n interface HttpBuilderOfT<T> {\r\n withJsonPatch(operations: import(\"@utiliread/jsonpatch\").Operation[]): this;\r\n }\r\n}\r\n\r\nHttpBuilder.prototype.withJsonPatch = function (\r\n this: HttpBuilder,\r\n operations: import(\"@utiliread/jsonpatch\").Operation[]\r\n) {\r\n this.message.content = serialize(operations);\r\n this.message.contentType = \"application/json-patch+json\";\r\n return this;\r\n};\r\n\r\nHttpBuilderOfT.prototype.withJsonPatch = function <T>(\r\n this: HttpBuilderOfT<T>,\r\n operations: import(\"@utiliread/jsonpatch\").Operation[]\r\n) {\r\n this.message.content = serialize(operations);\r\n this.message.contentType = \"application/json-patch+json\";\r\n return this;\r\n};\r\n"],"names":[],"version":3,"file":"jsonpatch.mjs.map"}
package/json.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ // Needed for old module resolution which does not use the exports section in package.json
2
+ export * from "./dist/json";
package/jsonpatch.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ // Needed for old module resolution which does not use the exports section in package.json
2
+ export * from "./dist/jsonpatch";
package/msgpack.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ // Needed for old module resolution which does not use the exports section in package.json
2
+ export * from "./dist/msgpack";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utiliread/http",
3
- "version": "1.19.4",
3
+ "version": "1.19.6",
4
4
  "source": "src/index.ts",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -28,9 +28,9 @@
28
28
  }
29
29
  },
30
30
  "sideEffects": [
31
- "./dist/json.m?js",
32
- "./dist/jsonpatch.m?js",
33
- "./dist/msgpack.m?js"
31
+ "./dist/json.{mjs,js}",
32
+ "./dist/jsonpatch.{mjs,js}",
33
+ "./dist/msgpack.{mjs,js}"
34
34
  ],
35
35
  "scripts": {
36
36
  "build": "npm run build:main && npm run build:json && npm run build:jsonpatch && npm run build:msgpack",
@@ -1,6 +1,5 @@
1
1
  import { HttpBuilder, HttpBuilderOfT } from "@utiliread/http";
2
2
 
3
- import { Operation } from "@utiliread/jsonpatch";
4
3
  import { serialize } from "@utiliread/json";
5
4
 
6
5
  // Force declarations to be module augmentations instead of ambient module declarations
@@ -10,17 +9,17 @@ export default {};
10
9
  // https://www.typescriptlang.org/docs/handbook/declaration-merging.html#module-augmentation
11
10
  declare module "@utiliread/http" {
12
11
  interface HttpBuilder {
13
- withJsonPatch(operations: Operation[]): this;
12
+ withJsonPatch(operations: import("@utiliread/jsonpatch").Operation[]): this;
14
13
  }
15
-
14
+
16
15
  interface HttpBuilderOfT<T> {
17
- withJsonPatch(operations: Operation[]): this;
16
+ withJsonPatch(operations: import("@utiliread/jsonpatch").Operation[]): this;
18
17
  }
19
18
  }
20
19
 
21
20
  HttpBuilder.prototype.withJsonPatch = function (
22
21
  this: HttpBuilder,
23
- operations: Operation[]
22
+ operations: import("@utiliread/jsonpatch").Operation[]
24
23
  ) {
25
24
  this.message.content = serialize(operations);
26
25
  this.message.contentType = "application/json-patch+json";
@@ -29,7 +28,7 @@ HttpBuilder.prototype.withJsonPatch = function (
29
28
 
30
29
  HttpBuilderOfT.prototype.withJsonPatch = function <T>(
31
30
  this: HttpBuilderOfT<T>,
32
- operations: Operation[]
31
+ operations: import("@utiliread/jsonpatch").Operation[]
33
32
  ) {
34
33
  this.message.content = serialize(operations);
35
34
  this.message.contentType = "application/json-patch+json";