@teambit/express 0.0.920 → 0.0.922

Sign up to get free protection for your applications and to get access to all the features.
package/dist/esm.d.mts ADDED
@@ -0,0 +1,3 @@
1
+ export const ExpressAspect: any;
2
+ export const Verb: any;
3
+ export default cjsModule;
package/dist/esm.mjs ADDED
@@ -0,0 +1,7 @@
1
+ // eslint-disable-next-line import/no-unresolved
2
+ import cjsModule from './index.js';
3
+
4
+ export const ExpressAspect = cjsModule.ExpressAspect;
5
+ export const Verb = cjsModule.Verb;
6
+
7
+ export default cjsModule;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
- export { RouteSlot } from './express.main.runtime';
2
- export { Route, Verb } from './types';
3
- export { Request, Response, NextFunction, Middleware } from './types';
1
+ export type { RouteSlot } from './express.main.runtime';
2
+ export type { Route } from './types';
3
+ export { Verb } from './types';
4
+ export type { Request, Response, NextFunction, Middleware } from './types';
4
5
  export type { MiddlewareManifest } from './middleware-manifest';
5
6
  export type { ExpressMain } from './express.main.runtime';
6
7
  export { ExpressAspect } from './express.aspect';
package/dist/index.js CHANGED
@@ -9,55 +9,12 @@ Object.defineProperty(exports, "ExpressAspect", {
9
9
  return _express().ExpressAspect;
10
10
  }
11
11
  });
12
- Object.defineProperty(exports, "Middleware", {
13
- enumerable: true,
14
- get: function () {
15
- return _types().Middleware;
16
- }
17
- });
18
- Object.defineProperty(exports, "NextFunction", {
19
- enumerable: true,
20
- get: function () {
21
- return _types().NextFunction;
22
- }
23
- });
24
- Object.defineProperty(exports, "Request", {
25
- enumerable: true,
26
- get: function () {
27
- return _types().Request;
28
- }
29
- });
30
- Object.defineProperty(exports, "Response", {
31
- enumerable: true,
32
- get: function () {
33
- return _types().Response;
34
- }
35
- });
36
- Object.defineProperty(exports, "Route", {
37
- enumerable: true,
38
- get: function () {
39
- return _types().Route;
40
- }
41
- });
42
- Object.defineProperty(exports, "RouteSlot", {
43
- enumerable: true,
44
- get: function () {
45
- return _expressMain().RouteSlot;
46
- }
47
- });
48
12
  Object.defineProperty(exports, "Verb", {
49
13
  enumerable: true,
50
14
  get: function () {
51
15
  return _types().Verb;
52
16
  }
53
17
  });
54
- function _expressMain() {
55
- const data = require("./express.main.runtime");
56
- _expressMain = function () {
57
- return data;
58
- };
59
- return data;
60
- }
61
18
  function _types() {
62
19
  const data = require("./types");
63
20
  _types = function () {
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["_expressMain","data","require","_types","_express"],"sources":["index.ts"],"sourcesContent":["export { RouteSlot } from './express.main.runtime';\nexport { Route, Verb } from './types';\nexport { Request, Response, NextFunction, Middleware } from './types';\nexport type { MiddlewareManifest } from './middleware-manifest';\nexport type { ExpressMain } from './express.main.runtime';\nexport { ExpressAspect } from './express.aspect';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAAA,aAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,YAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,OAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,MAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAIA,SAAAG,SAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,QAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA"}
1
+ {"version":3,"names":["_types","data","require","_express"],"sources":["index.ts"],"sourcesContent":["export type { RouteSlot } from './express.main.runtime';\nexport type { Route } from './types';\nexport { Verb } from './types';\nexport type { Request, Response, NextFunction, Middleware } from './types';\nexport type { MiddlewareManifest } from './middleware-manifest';\nexport type { ExpressMain } from './express.main.runtime';\nexport { ExpressAspect } from './express.aspect';\n"],"mappings":";;;;;;;;;;;;;;;;;AAEA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAIA,SAAAE,SAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,QAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA"}
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_express@0.0.920/dist/express.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_express@0.0.920/dist/express.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_express@0.0.922/dist/express.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_express@0.0.922/dist/express.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
package/esm.mjs ADDED
@@ -0,0 +1,7 @@
1
+ // eslint-disable-next-line import/no-unresolved
2
+ import cjsModule from './index.js';
3
+
4
+ export const ExpressAspect = cjsModule.ExpressAspect;
5
+ export const Verb = cjsModule.Verb;
6
+
7
+ export default cjsModule;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/express",
3
- "version": "0.0.920",
3
+ "version": "0.0.922",
4
4
  "homepage": "https://bit.cloud/teambit/harmony/express",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.harmony",
8
8
  "name": "express",
9
- "version": "0.0.920"
9
+ "version": "0.0.922"
10
10
  },
11
11
  "dependencies": {
12
12
  "body-parser": "1.19.0",
@@ -15,8 +15,8 @@
15
15
  "core-js": "^3.0.0",
16
16
  "@babel/runtime": "7.20.0",
17
17
  "@teambit/harmony": "0.4.6",
18
- "@teambit/cli": "0.0.821",
19
- "@teambit/logger": "0.0.914"
18
+ "@teambit/cli": "0.0.823",
19
+ "@teambit/logger": "0.0.916"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/react": "^17.0.8",
@@ -29,11 +29,18 @@
29
29
  "@types/testing-library__jest-dom": "5.9.5"
30
30
  },
31
31
  "peerDependencies": {
32
- "@teambit/legacy": "1.0.604",
32
+ "@teambit/legacy": "1.0.606",
33
33
  "react": "^16.8.0 || ^17.0.0",
34
34
  "react-dom": "^16.8.0 || ^17.0.0"
35
35
  },
36
36
  "license": "Apache-2.0",
37
+ "exports": {
38
+ "node": {
39
+ "require": "./dist/index.js",
40
+ "import": "./dist/esm.mjs"
41
+ },
42
+ "default": "./dist/index.js"
43
+ },
37
44
  "private": false,
38
45
  "engines": {
39
46
  "node": ">=12.22.0"