@modern-js/plugin-server 0.0.0-nightly-20240228170648 → 0.0.0-nightly-20240229170649

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.
@@ -24,7 +24,6 @@ __export(server_exports, {
24
24
  loadServerMod: () => import_utils2.loadServerMod
25
25
  });
26
26
  module.exports = __toCommonJS(server_exports);
27
- var import_define_property = require("@swc/helpers/_/_define_property");
28
27
  var import_utils = require("@modern-js/utils");
29
28
  var import_utils2 = require("./utils");
30
29
  var HOOKS;
@@ -38,8 +37,8 @@ class Storage {
38
37
  this.hooks = {};
39
38
  }
40
39
  constructor() {
41
- (0, import_define_property._)(this, "middlewares", []);
42
- (0, import_define_property._)(this, "hooks", {});
40
+ this.middlewares = [];
41
+ this.hooks = {};
43
42
  }
44
43
  }
45
44
  const createTransformAPI = (storage) => new Proxy({}, {
@@ -1,6 +1,4 @@
1
1
  import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
2
- import { _ as _create_class } from "@swc/helpers/_/_create_class";
3
- import { _ as _define_property } from "@swc/helpers/_/_define_property";
4
2
  import { isProd, logger } from "@modern-js/utils";
5
3
  import { loadMiddleware, loadServerMod } from "./utils";
6
4
  var HOOKS;
@@ -12,18 +10,14 @@ var Storage = /* @__PURE__ */ function() {
12
10
  "use strict";
13
11
  function Storage2() {
14
12
  _class_call_check(this, Storage2);
15
- _define_property(this, "middlewares", []);
16
- _define_property(this, "hooks", {});
13
+ this.middlewares = [];
14
+ this.hooks = {};
17
15
  }
18
- _create_class(Storage2, [
19
- {
20
- key: "reset",
21
- value: function reset() {
22
- this.middlewares = [];
23
- this.hooks = {};
24
- }
25
- }
26
- ]);
16
+ var _proto = Storage2.prototype;
17
+ _proto.reset = function reset() {
18
+ this.middlewares = [];
19
+ this.hooks = {};
20
+ };
27
21
  return Storage2;
28
22
  }();
29
23
  var createTransformAPI = function(storage) {
@@ -1,4 +1,3 @@
1
- import { _ as _define_property } from "@swc/helpers/_/_define_property";
2
1
  import { isProd, logger } from "@modern-js/utils";
3
2
  import { loadMiddleware, loadServerMod } from "./utils";
4
3
  var HOOKS;
@@ -12,8 +11,8 @@ class Storage {
12
11
  this.hooks = {};
13
12
  }
14
13
  constructor() {
15
- _define_property(this, "middlewares", []);
16
- _define_property(this, "hooks", {});
14
+ this.middlewares = [];
15
+ this.hooks = {};
17
16
  }
18
17
  }
19
18
  const createTransformAPI = (storage) => new Proxy({}, {
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "0.0.0-nightly-20240228170648",
18
+ "version": "0.0.0-nightly-20240229170649",
19
19
  "types": "./dist/types/cli.d.ts",
20
20
  "jsnext:source": "./src/cli",
21
21
  "main": "./dist/cjs/cli.js",
@@ -51,20 +51,20 @@
51
51
  },
52
52
  "dependencies": {
53
53
  "@swc/helpers": "0.5.3",
54
- "@modern-js/utils": "0.0.0-nightly-20240228170648",
55
- "@modern-js/server-utils": "0.0.0-nightly-20240228170648"
54
+ "@modern-js/utils": "0.0.0-nightly-20240229170649",
55
+ "@modern-js/server-utils": "0.0.0-nightly-20240229170649"
56
56
  },
57
57
  "devDependencies": {
58
58
  "typescript": "^5",
59
59
  "@types/jest": "^29",
60
60
  "@types/node": "^14",
61
61
  "jest": "^29",
62
- "@modern-js/app-tools": "0.0.0-nightly-20240228170648",
63
- "@modern-js/core": "0.0.0-nightly-20240228170648",
64
- "@modern-js/server-core": "0.0.0-nightly-20240228170648",
65
- "@scripts/build": "0.0.0-nightly-20240228170648",
66
- "@modern-js/types": "0.0.0-nightly-20240228170648",
67
- "@scripts/jest-config": "0.0.0-nightly-20240228170648"
62
+ "@modern-js/server-core": "0.0.0-nightly-20240229170649",
63
+ "@modern-js/app-tools": "0.0.0-nightly-20240229170649",
64
+ "@scripts/build": "0.0.0-nightly-20240229170649",
65
+ "@modern-js/types": "0.0.0-nightly-20240229170649",
66
+ "@scripts/jest-config": "0.0.0-nightly-20240229170649",
67
+ "@modern-js/core": "0.0.0-nightly-20240229170649"
68
68
  },
69
69
  "sideEffects": [
70
70
  "*.css",