@aurispec/core-backend 1.0.16 → 1.0.17

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 +1 @@
1
- {"version":3,"file":"cors.d.ts","sourceRoot":"","sources":["../../../src/common/configs/cors.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW;qBACH,MAAM,GAAG,SAAS,YACrB,CAAC,GAAG,EAAE,KAAK,GAAG,IAAI,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI;;;;;CA6B5D,CAAC"}
1
+ {"version":3,"file":"cors.d.ts","sourceRoot":"","sources":["../../../src/common/configs/cors.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW;qBACH,MAAM,GAAG,SAAS,YACrB,CAAC,GAAG,EAAE,KAAK,GAAG,IAAI,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI;;;;;CA0B5D,CAAC"}
@@ -12,9 +12,6 @@ exports.corsOptions = {
12
12
  }
13
13
  const normalizedOrigin = origin.replace(/\/$/, "");
14
14
  const allowedOrigins = _1.CONFIGS.FRONT_ENDS.map(o => o.replace(/\/$/, ""));
15
- console.log({ normalizedOrigin });
16
- console.log({ allowedOrigins });
17
- console.log("CONFIGS.FRONT_ENDS", _1.CONFIGS.FRONT_ENDS);
18
15
  if (allowedOrigins.includes(normalizedOrigin)) {
19
16
  callback(null, true);
20
17
  }
@@ -109,4 +109,5 @@ export * from "./plans";
109
109
  export * from "./postgres";
110
110
  export * from "./redis";
111
111
  export * from "./axios";
112
+ export * from "./stripe";
112
113
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/configs/index.ts"],"names":[],"mappings":"AAMA,aAAK,eAAe;IAChB,QAAQ,aAAa;IACrB,eAAe,oBAAoB;IACnC,kBAAkB,uBAAuB;IACzC,UAAU,eAAe;IACzB,IAAI,SAAS;IACb,IAAI,SAAO;IACX,wBAAwB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ACnB,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,cAAc,mBAAmB;IACjC,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,cAAc,mBAAiB;IAC/B,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;IAC/B,iBAAiB,sBAAsB;IACvC,aAAa,kBAAkB;IAC/B,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,qBAAqB,0BAA0B;IAC/C,qBAAqB,0BAA0B;IAC/C,gBAAgB,qBAAqB;IACrC,cAAc,mBAAmB;IACjC,iBAAiB,sBAAsB;IACvC,qBAAqB,0BAA0B;IAC/C,qBAAqB,0BAA0B;IAC/C,kBAAkB,uBAAuB;IACzC,qBAAqB,0BAA0B;CAClD;AAED,wBAAgB,MAAM,CAAC,GAAG,EAAE,eAAe,GAAG,MAAM,CAQnD;AAED,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgCwC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2DjE,CAAA;AAED,cAAc,cAAc,CAAA;AAC5B,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA"}
@@ -168,3 +168,4 @@ __exportStar(require("./plans"), exports);
168
168
  __exportStar(require("./postgres"), exports);
169
169
  __exportStar(require("./redis"), exports);
170
170
  __exportStar(require("./axios"), exports);
171
+ __exportStar(require("./stripe"), exports);
@@ -0,0 +1,3 @@
1
+ import Stripe from "stripe";
2
+ export declare const stripe: Stripe;
3
+ //# sourceMappingURL=stripe.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stripe.d.ts","sourceRoot":"","sources":["../../../src/common/configs/stripe.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAG5B,eAAO,MAAM,MAAM,QAEjB,CAAC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.stripe = void 0;
7
+ const stripe_1 = __importDefault(require("stripe"));
8
+ const _1 = require(".");
9
+ exports.stripe = new stripe_1.default(_1.CONFIGS.STRIPE.SECRET_KEY, {
10
+ apiVersion: "2025-12-15.clover"
11
+ });
@@ -1 +1 @@
1
- {"version":3,"file":"PaymentGatewayCustomerModel.d.ts","sourceRoot":"","sources":["../../src/models/PaymentGatewayCustomerModel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,qBAEa,2BAA4B,SAAQ,SAAS;IAEtD,WAAW,EAAG,MAAM,CAAC;IAGrB,OAAO,EAAG,MAAM,CAAC;CAKpB"}
1
+ {"version":3,"file":"PaymentGatewayCustomerModel.d.ts","sourceRoot":"","sources":["../../src/models/PaymentGatewayCustomerModel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,qBAEa,2BAA4B,SAAQ,SAAS;IAEtD,WAAW,EAAG,MAAM,CAAC;IAGrB,OAAO,EAAG,MAAM,CAAC;CAKpB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurispec/core-backend",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "Auri spectrum's backend core",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",