@adaptabletools/adaptable-plugin-nocode-aggrid-cjs 19.2.4 → 20.0.0-canary.1

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 +3 -3
  2. package/src/index.js +11 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable-plugin-nocode-aggrid-cjs",
3
- "version": "19.2.4",
3
+ "version": "20.0.0-canary.1",
4
4
  "description": "",
5
5
  "homepage": "http://www.adaptabletools.com/",
6
6
  "author": {
@@ -10,9 +10,9 @@
10
10
  "main": "src/index.js",
11
11
  "typings": "src/index.d.ts",
12
12
  "dependencies": {
13
- "tslib": "^2.3.0",
13
+ "tslib": "^2.8.1",
14
14
  "xlsx": "^0.15.5",
15
- "@adaptabletools/adaptable-cjs": "19.2.4"
15
+ "@adaptabletools/adaptable-cjs": "20.0.0-canary.1"
16
16
  },
17
17
  "peerDependencies": {}
18
18
  }
package/src/index.js CHANGED
@@ -4,17 +4,16 @@ exports.readExcelFile = exports.readJSONFile = void 0;
4
4
  const xlsx_1 = require("xlsx");
5
5
  const agGrid_1 = require("@adaptabletools/adaptable-cjs/agGrid");
6
6
  const types_1 = require("@adaptabletools/adaptable-cjs/types");
7
- // TODO in the future, try to put back the version check
8
- // import { version, name } from '../package.json';
9
- // import { version as coreVersion } from '@adaptabletools/adaptable/package.json';
10
- // const suffix = name.endsWith('-cjs') ? '-cjs' : '';
11
- // if (version !== coreVersion) {
12
- // console.warn(`
13
- // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
14
- // !!!!!!! "@adaptabletools/adaptable-plugin-nocode${suffix}" (v @${version}) and "@adaptabletools/adaptable${suffix}" (v @${coreVersion}) have different versions - they should have the exact same version.
15
- // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
16
- // `);
17
- // }
7
+ const package_json_1 = require("../package.json");
8
+ const package_json_2 = require("@adaptabletools/adaptable-cjs/package.json");
9
+ const suffix = package_json_1.name.endsWith('-cjs') ? '-cjs' : '';
10
+ if (package_json_1.version !== package_json_2.version) {
11
+ console.warn(`
12
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
13
+ !!!!!!! "@adaptabletools/adaptable-plugin-nocode${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
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
15
+ `);
16
+ }
18
17
  const readJSONFile = async (file, toJSON) => {
19
18
  const reader = new FileReader();
20
19
  return new Promise((resolve, reject) => {
@@ -67,7 +66,7 @@ class NoCodePlugin extends types_1.AdaptablePlugin {
67
66
  constructor(options) {
68
67
  super(options);
69
68
  this.pluginId = 'nocode-aggrid';
70
- this.options = Object.assign(Object.assign({}, defaultOptions), options);
69
+ this.options = { ...defaultOptions, ...options };
71
70
  }
72
71
  beforeInit(adaptableOptions, agGridOptions) {
73
72
  const theme = this.options.theme ||