@arkyn/server 1.4.30 → 1.4.31

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,5 +1,5 @@
1
1
  declare class Created extends Response {
2
- constructor(body?: any, init?: ResponseInit);
2
+ constructor(body: any, init?: ResponseInit);
3
3
  }
4
4
  export { Created };
5
5
  //# sourceMappingURL=created.d.ts.map
@@ -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;CAU5C;AAED,OAAO,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"created.d.ts","sourceRoot":"","sources":["../../src/httpResponses/created.ts"],"names":[],"mappings":"AAAA,cAAM,OAAQ,SAAQ,QAAQ;gBAChB,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,YAAY;CAU3C;AAED,OAAO,EAAE,OAAO,EAAE,CAAC"}
@@ -1,6 +1,6 @@
1
1
  class Created extends Response {
2
2
  constructor(body, init) {
3
- super(body, {
3
+ super(JSON.stringify(body), {
4
4
  ...init,
5
5
  status: 201,
6
6
  headers: {
@@ -1,5 +1,5 @@
1
1
  declare class Success extends Response {
2
- constructor(body?: any, init?: ResponseInit);
2
+ constructor(body: any, init?: ResponseInit);
3
3
  }
4
4
  export { Success };
5
5
  //# sourceMappingURL=success.d.ts.map
@@ -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;CAU5C;AAED,OAAO,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"success.d.ts","sourceRoot":"","sources":["../../src/httpResponses/success.ts"],"names":[],"mappings":"AAAA,cAAM,OAAQ,SAAQ,QAAQ;gBAChB,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,YAAY;CAU3C;AAED,OAAO,EAAE,OAAO,EAAE,CAAC"}
@@ -1,6 +1,6 @@
1
1
  class Success extends Response {
2
2
  constructor(body, init) {
3
- super(body, {
3
+ super(JSON.stringify(body), {
4
4
  ...init,
5
5
  status: 200,
6
6
  headers: {
@@ -1,5 +1,5 @@
1
1
  declare class Updated extends Response {
2
- constructor(body?: any, init?: ResponseInit);
2
+ constructor(body: any, init?: ResponseInit);
3
3
  }
4
4
  export { Updated };
5
5
  //# sourceMappingURL=updated.d.ts.map
@@ -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;CAU5C;AAED,OAAO,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"updated.d.ts","sourceRoot":"","sources":["../../src/httpResponses/updated.ts"],"names":[],"mappings":"AAAA,cAAM,OAAQ,SAAQ,QAAQ;gBAChB,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,YAAY;CAU3C;AAED,OAAO,EAAE,OAAO,EAAE,CAAC"}
@@ -1,6 +1,6 @@
1
1
  class Updated extends Response {
2
2
  constructor(body, init) {
3
- super(body, {
3
+ super(JSON.stringify(body), {
4
4
  ...init,
5
5
  status: 200,
6
6
  headers: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkyn/server",
3
- "version": "1.4.30",
3
+ "version": "1.4.31",
4
4
  "main": "./dist/bundle.js",
5
5
  "module": "./src/index.ts",
6
6
  "type": "module",
@@ -1,6 +1,6 @@
1
1
  class Created extends Response {
2
- constructor(body?: any, init?: ResponseInit) {
3
- super(body, {
2
+ constructor(body: any, init?: ResponseInit) {
3
+ super(JSON.stringify(body), {
4
4
  ...init,
5
5
  status: 201,
6
6
  headers: {
@@ -1,6 +1,6 @@
1
1
  class Success extends Response {
2
- constructor(body?: any, init?: ResponseInit) {
3
- super(body, {
2
+ constructor(body: any, init?: ResponseInit) {
3
+ super(JSON.stringify(body), {
4
4
  ...init,
5
5
  status: 200,
6
6
  headers: {
@@ -1,6 +1,6 @@
1
1
  class Updated extends Response {
2
- constructor(body?: any, init?: ResponseInit) {
3
- super(body, {
2
+ constructor(body: any, init?: ResponseInit) {
3
+ super(JSON.stringify(body), {
4
4
  ...init,
5
5
  status: 200,
6
6
  headers: {