@adaptabletools/adaptable-plugin-master-detail-aggrid-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 +8 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable-plugin-master-detail-aggrid-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
@@ -1,14 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
3
4
  const types_1 = require("@adaptabletools/adaptable-cjs/types");
4
- const package_json_1 = require("../package.json");
5
- const package_json_2 = require("@adaptabletools/adaptable-cjs/package.json");
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
+ const package_json_2 = tslib_1.__importDefault(require("@adaptabletools/adaptable-cjs/package.json"));
6
7
  const attachDetailCellRenderer_1 = require("./attachDetailCellRenderer");
7
- const suffix = package_json_1.name.endsWith('-cjs') ? '-cjs' : '';
8
- if (package_json_1.version !== package_json_2.version) {
8
+ const { version, name } = package_json_1.default;
9
+ const { version: coreVersion } = package_json_2.default;
10
+ const suffix = name.endsWith('-cjs') ? '-cjs' : '';
11
+ if (version !== coreVersion) {
9
12
  console.warn(`
10
13
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
11
- !!!!!!! "@adaptabletools/adaptable-plugin-master-detail-aggrid${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.
14
+ !!!!!!! "@adaptabletools/adaptable-plugin-master-detail-aggrid${suffix}" (v @${version}) and "@adaptabletools/adaptable${suffix}" (v @${coreVersion}) have different versions - they should have the exact same version.
12
15
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
13
16
  `);
14
17
  }