@lightspeed/online-payments-sdk 1.2.2 → 1.2.3

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.
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getLogger = exports.Logger = void 0;
4
4
  var browser_logs_1 = require("@datadog/browser-logs");
5
+ var version_1 = require("../../../version");
5
6
  var Logger = /** @class */ (function () {
6
7
  function Logger() {
7
8
  }
@@ -12,6 +13,7 @@ var Logger = /** @class */ (function () {
12
13
  site: site,
13
14
  service: 'lsp-online-payments-sdk',
14
15
  env: env,
16
+ version: version_1.SDK_VERSION,
15
17
  forwardErrorsToLogs: false,
16
18
  forwardConsoleLogs: [],
17
19
  };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SDK_VERSION = void 0;
4
+ // This file is auto-generated during the build process
5
+ // DO NOT EDIT MANUALLY - Version is extracted from package.json
6
+ exports.SDK_VERSION = '1.2.3';
@@ -1,4 +1,5 @@
1
1
  import { datadogLogs } from '@datadog/browser-logs';
2
+ import { SDK_VERSION } from '../../../version';
2
3
  var Logger = /** @class */ (function () {
3
4
  function Logger() {
4
5
  }
@@ -9,6 +10,7 @@ var Logger = /** @class */ (function () {
9
10
  site: site,
10
11
  service: 'lsp-online-payments-sdk',
11
12
  env: env,
13
+ version: SDK_VERSION,
12
14
  forwardErrorsToLogs: false,
13
15
  forwardConsoleLogs: [],
14
16
  };
@@ -0,0 +1 @@
1
+ export declare const SDK_VERSION = "1.2.3";
@@ -0,0 +1,3 @@
1
+ // This file is auto-generated during the build process
2
+ // DO NOT EDIT MANUALLY - Version is extracted from package.json
3
+ export var SDK_VERSION = '1.2.3';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightspeed/online-payments-sdk",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "Process online-payments with Lightspeed Payments",
5
5
  "author": "Lightspeed Commerce Inc.",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -20,8 +20,10 @@
20
20
  "lint": "gts lint",
21
21
  "fix": "gts fix",
22
22
  "clean": "gts clean",
23
+ "pretypecheck": "node scripts/generate-version.js",
23
24
  "typecheck": "tsc --noEmit",
24
25
  "check-package-content": "npm pack --dry-run",
26
+ "prebuild": "node scripts/generate-version.js",
25
27
  "build": "npm run build:esm && npm run build:cjs",
26
28
  "build:esm": "tsc --module esnext --target es5 --outDir dist --downlevelIteration",
27
29
  "build:cjs": "tsc --module commonjs --target es5 --outDir dist/cjs --downlevelIteration --declaration false"