@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.
- package/dist/jsonpatch.js.map +1 -1
- package/dist/jsonpatch.mjs.map +1 -1
- package/json.d.ts +2 -0
- package/jsonpatch.d.ts +2 -0
- package/msgpack.d.ts +2 -0
- package/package.json +4 -4
package/dist/jsonpatch.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;
|
|
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"}
|
package/dist/jsonpatch.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;
|
|
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
package/jsonpatch.d.ts
ADDED
package/msgpack.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@utiliread/http",
|
|
3
|
-
"version": "1.19.
|
|
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.
|
|
32
|
-
"./dist/jsonpatch.
|
|
33
|
-
"./dist/msgpack.
|
|
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",
|