@psctickets/common 1.0.7 → 1.0.9

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/build/index.d.ts CHANGED
@@ -1,3 +1,2 @@
1
- import * as errors from "./errors";
2
- import * as middlewares from "./middlewares";
3
- export { errors, middlewares };
1
+ export * from "./errors";
2
+ export * from "./middlewares";
package/build/index.js CHANGED
@@ -10,31 +10,9 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
10
10
  if (k2 === undefined) k2 = k;
11
11
  o[k2] = m[k];
12
12
  }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
35
16
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.middlewares = exports.errors = void 0;
37
- const errors = __importStar(require("./errors"));
38
- exports.errors = errors;
39
- const middlewares = __importStar(require("./middlewares"));
40
- exports.middlewares = middlewares;
17
+ __exportStar(require("./errors"), exports);
18
+ __exportStar(require("./middlewares"), exports);
package/package.json CHANGED
@@ -1,14 +1,21 @@
1
1
  {
2
2
  "name": "@psctickets/common",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "common package for tickets learning project",
5
5
  "main": "build/index.js",
6
6
  "files": [
7
- "build/"
7
+ "build"
8
8
  ],
9
+ "types": "build/index.d.ts",
10
+ "exports": {
11
+ ".": "./build/index.js",
12
+ "./errors": "./build/errors/index.js",
13
+ "./middlewares": "./build/middlewares/index.js"
14
+ },
9
15
  "scripts": {
10
16
  "build": "npm run clean && tsc",
11
- "clean": "del-cli ./build/*"
17
+ "clean": "del-cli ./build/*",
18
+ "pub": "npm version patch && npm publish --access=public"
12
19
  },
13
20
  "keywords": [],
14
21
  "author": "",