@utiliread/http 1.19.5 → 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.
@@ -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.5",
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",