@adaptabletools/adaptable-plugin-ipushpull 20.1.4 → 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 +4 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable-plugin-ipushpull",
3
- "version": "20.1.4",
3
+ "version": "20.1.6",
4
4
  "description": "",
5
5
  "homepage": "http://www.adaptabletools.com/",
6
6
  "author": {
package/src/index.js CHANGED
@@ -1,8 +1,7 @@
1
1
  import { AdaptablePlugin } from '@adaptabletools/adaptable/types';
2
2
  import env from './env';
3
- // TODO in the future, try to put back the version check
4
- import { name, version } from '../package.json';
5
- import { version as coreVersion } from '@adaptabletools/adaptable/package.json';
3
+ import packageJson from '../package.json';
4
+ import adaptableCorePackageJson from '@adaptabletools/adaptable/package.json';
6
5
  import * as ModuleConstants from '@adaptabletools/adaptable/src/Utilities/Constants/ModuleConstants';
7
6
  import { IPushPullModuleId } from '@adaptabletools/adaptable/src/Utilities/Constants/ModuleConstants';
8
7
  import * as PopupRedux from '@adaptabletools/adaptable/src/Redux/ActionsReducers/PopupRedux';
@@ -17,6 +16,8 @@ import { IPushPullAddPagePopup } from './View/IPushPullAddPagePopup';
17
16
  import { IPUSHPULL_ADD_PAGE, IPUSHPULL_DOMAIN_PAGES_SET, IPUSHPULL_LOGIN, IPUSHPULL_SEND_SNAPSHOT, IPUSHPULL_SET_CURRENT_FOLDER, IPUSHPULL_START_LIVE_DATA, IPUSHPULL_STOP_LIVE_DATA, } from '@adaptabletools/adaptable/src/Redux/ActionsReducers/PluginsRedux';
18
17
  import StringExtensions from '@adaptabletools/adaptable/src/Utilities/Extensions/StringExtensions';
19
18
  import { IPushPullViewPanelControl } from './View/IPushPullViewPanel';
19
+ const { version, name } = packageJson;
20
+ const { version: coreVersion } = adaptableCorePackageJson;
20
21
  const suffix = name.endsWith('-cjs') ? '-cjs' : '';
21
22
  if (version !== coreVersion) {
22
23
  console.warn(`