@adaptabletools/adaptable-plugin-ipushpull-cjs 20.1.5 → 20.1.6

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +7 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable-plugin-ipushpull-cjs",
3
- "version": "20.1.5",
3
+ "version": "20.1.6",
4
4
  "description": "",
5
5
  "homepage": "http://www.adaptabletools.com/",
6
6
  "author": {
package/src/index.js CHANGED
@@ -3,9 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const types_1 = require("@adaptabletools/adaptable-cjs/types");
5
5
  const env_1 = tslib_1.__importDefault(require("./env"));
6
- // TODO in the future, try to put back the version check
7
- const package_json_1 = require("../package.json");
8
- const package_json_2 = require("@adaptabletools/adaptable-cjs/package.json");
6
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
7
+ const package_json_2 = tslib_1.__importDefault(require("@adaptabletools/adaptable-cjs/package.json"));
9
8
  const ModuleConstants = tslib_1.__importStar(require("@adaptabletools/adaptable-cjs/src/Utilities/Constants/ModuleConstants"));
10
9
  const ModuleConstants_1 = require("@adaptabletools/adaptable-cjs/src/Utilities/Constants/ModuleConstants");
11
10
  const PopupRedux = tslib_1.__importStar(require("@adaptabletools/adaptable-cjs/src/Redux/ActionsReducers/PopupRedux"));
@@ -20,11 +19,13 @@ const IPushPullAddPagePopup_1 = require("./View/IPushPullAddPagePopup");
20
19
  const PluginsRedux_1 = require("@adaptabletools/adaptable-cjs/src/Redux/ActionsReducers/PluginsRedux");
21
20
  const StringExtensions_1 = tslib_1.__importDefault(require("@adaptabletools/adaptable-cjs/src/Utilities/Extensions/StringExtensions"));
22
21
  const IPushPullViewPanel_1 = require("./View/IPushPullViewPanel");
23
- const suffix = package_json_1.name.endsWith('-cjs') ? '-cjs' : '';
24
- if (package_json_1.version !== package_json_2.version) {
22
+ const { version, name } = package_json_1.default;
23
+ const { version: coreVersion } = package_json_2.default;
24
+ const suffix = name.endsWith('-cjs') ? '-cjs' : '';
25
+ if (version !== coreVersion) {
25
26
  console.warn(`
26
27
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
27
- !!!!!!! "@adaptabletools/adaptable-plugin-ipushpull${suffix}" (v @${package_json_1.version}) and "@adaptabletools/adaptable${suffix}" (v @${package_json_2.version}) have different versions - they should have the exact same version.
28
+ !!!!!!! "@adaptabletools/adaptable-plugin-ipushpull${suffix}" (v @${version}) and "@adaptabletools/adaptable${suffix}" (v @${coreVersion}) have different versions - they should have the exact same version.
28
29
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
29
30
  `);
30
31
  }