@utiliread/http 1.19.4 → 1.19.5
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.d.ts
CHANGED
|
@@ -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
|
|
package/dist/jsonpatch.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";
|
|
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"}
|
package/package.json
CHANGED
|
@@ -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";
|