@arkyn/server 1.4.29 → 1.4.30
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/httpResponses/created.d.ts.map +1 -1
- package/dist/httpResponses/created.js +8 -2
- package/dist/httpResponses/noContent.d.ts +1 -1
- package/dist/httpResponses/noContent.d.ts.map +1 -1
- package/dist/httpResponses/noContent.js +2 -2
- package/dist/httpResponses/success.d.ts.map +1 -1
- package/dist/httpResponses/success.js +8 -2
- package/dist/httpResponses/updated.d.ts.map +1 -1
- package/dist/httpResponses/updated.js +8 -2
- package/package.json +1 -1
- package/src/httpResponses/created.ts +8 -2
- package/src/httpResponses/noContent.ts +2 -2
- package/src/httpResponses/success.ts +8 -2
- package/src/httpResponses/updated.ts +8 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"created.d.ts","sourceRoot":"","sources":["../../src/httpResponses/created.ts"],"names":[],"mappings":"AAAA,cAAM,OAAQ,SAAQ,QAAQ;gBAChB,IAAI,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,YAAY;
|
|
1
|
+
{"version":3,"file":"created.d.ts","sourceRoot":"","sources":["../../src/httpResponses/created.ts"],"names":[],"mappings":"AAAA,cAAM,OAAQ,SAAQ,QAAQ;gBAChB,IAAI,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,YAAY;CAU5C;AAED,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
class Created extends Response {
|
|
2
2
|
constructor(body, init) {
|
|
3
|
-
super(body, {
|
|
4
|
-
|
|
3
|
+
super(body, {
|
|
4
|
+
...init,
|
|
5
|
+
status: 201,
|
|
6
|
+
headers: {
|
|
7
|
+
"Content-Type": "application/json",
|
|
8
|
+
...init?.headers,
|
|
9
|
+
},
|
|
10
|
+
});
|
|
5
11
|
}
|
|
6
12
|
}
|
|
7
13
|
export { Created };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"noContent.d.ts","sourceRoot":"","sources":["../../src/httpResponses/noContent.ts"],"names":[],"mappings":"AAAA,cAAM,SAAU,SAAQ,QAAQ;gBAClB,IAAI,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"noContent.d.ts","sourceRoot":"","sources":["../../src/httpResponses/noContent.ts"],"names":[],"mappings":"AAAA,cAAM,SAAU,SAAQ,QAAQ;gBAClB,IAAI,CAAC,EAAE,YAAY;CAGhC;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"success.d.ts","sourceRoot":"","sources":["../../src/httpResponses/success.ts"],"names":[],"mappings":"AAAA,cAAM,OAAQ,SAAQ,QAAQ;gBAChB,IAAI,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,YAAY;
|
|
1
|
+
{"version":3,"file":"success.d.ts","sourceRoot":"","sources":["../../src/httpResponses/success.ts"],"names":[],"mappings":"AAAA,cAAM,OAAQ,SAAQ,QAAQ;gBAChB,IAAI,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,YAAY;CAU5C;AAED,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
class Success extends Response {
|
|
2
2
|
constructor(body, init) {
|
|
3
|
-
super(body, {
|
|
4
|
-
|
|
3
|
+
super(body, {
|
|
4
|
+
...init,
|
|
5
|
+
status: 200,
|
|
6
|
+
headers: {
|
|
7
|
+
"Content-Type": "application/json",
|
|
8
|
+
...init?.headers,
|
|
9
|
+
},
|
|
10
|
+
});
|
|
5
11
|
}
|
|
6
12
|
}
|
|
7
13
|
export { Success };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updated.d.ts","sourceRoot":"","sources":["../../src/httpResponses/updated.ts"],"names":[],"mappings":"AAAA,cAAM,OAAQ,SAAQ,QAAQ;gBAChB,IAAI,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,YAAY;
|
|
1
|
+
{"version":3,"file":"updated.d.ts","sourceRoot":"","sources":["../../src/httpResponses/updated.ts"],"names":[],"mappings":"AAAA,cAAM,OAAQ,SAAQ,QAAQ;gBAChB,IAAI,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,YAAY;CAU5C;AAED,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
class Updated extends Response {
|
|
2
2
|
constructor(body, init) {
|
|
3
|
-
super(body, {
|
|
4
|
-
|
|
3
|
+
super(body, {
|
|
4
|
+
...init,
|
|
5
|
+
status: 200,
|
|
6
|
+
headers: {
|
|
7
|
+
"Content-Type": "application/json",
|
|
8
|
+
...init?.headers,
|
|
9
|
+
},
|
|
10
|
+
});
|
|
5
11
|
}
|
|
6
12
|
}
|
|
7
13
|
export { Updated };
|
package/package.json
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
class Created extends Response {
|
|
2
2
|
constructor(body?: any, init?: ResponseInit) {
|
|
3
|
-
super(body, {
|
|
4
|
-
|
|
3
|
+
super(body, {
|
|
4
|
+
...init,
|
|
5
|
+
status: 201,
|
|
6
|
+
headers: {
|
|
7
|
+
"Content-Type": "application/json",
|
|
8
|
+
...init?.headers,
|
|
9
|
+
},
|
|
10
|
+
});
|
|
5
11
|
}
|
|
6
12
|
}
|
|
7
13
|
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
class Success extends Response {
|
|
2
2
|
constructor(body?: any, init?: ResponseInit) {
|
|
3
|
-
super(body, {
|
|
4
|
-
|
|
3
|
+
super(body, {
|
|
4
|
+
...init,
|
|
5
|
+
status: 200,
|
|
6
|
+
headers: {
|
|
7
|
+
"Content-Type": "application/json",
|
|
8
|
+
...init?.headers,
|
|
9
|
+
},
|
|
10
|
+
});
|
|
5
11
|
}
|
|
6
12
|
}
|
|
7
13
|
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
class Updated extends Response {
|
|
2
2
|
constructor(body?: any, init?: ResponseInit) {
|
|
3
|
-
super(body, {
|
|
4
|
-
|
|
3
|
+
super(body, {
|
|
4
|
+
...init,
|
|
5
|
+
status: 200,
|
|
6
|
+
headers: {
|
|
7
|
+
"Content-Type": "application/json",
|
|
8
|
+
...init?.headers,
|
|
9
|
+
},
|
|
10
|
+
});
|
|
5
11
|
}
|
|
6
12
|
}
|
|
7
13
|
|