@ombori/grid-signals
Advanced tools
Comparing version 2.136.3 to 2.138.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [2.138.0](https://github.com/ombori/gridapp/compare/v2.137.5...v2.138.0) (2021-12-14) | ||
### Features | ||
* rename getInstanceState to getInstanceProps ([5876f14](https://github.com/ombori/gridapp/commit/5876f14f55acce26aabc03dbe9e37e968e5b54b0)) | ||
## [2.136.3](https://github.com/ombori/gridapp/compare/v2.136.2...v2.136.3) (2021-12-12) | ||
@@ -8,0 +19,0 @@ |
import { InitProps, Instance } from './types'; | ||
import GridSignals from './grid-signals'; | ||
export declare const init: (initParams: InitProps) => Promise<void>; | ||
export declare const getInstanceState: () => Instance; | ||
export declare const getInstanceProps: () => Instance; | ||
export declare const getInstance: () => GridSignals; |
@@ -15,3 +15,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getInstance = exports.getInstanceState = exports.init = void 0; | ||
exports.getInstance = exports.getInstanceProps = exports.init = void 0; | ||
const browser_or_node_1 = require("browser-or-node"); | ||
@@ -26,7 +26,7 @@ const grid_signals_1 = __importDefault(require("./grid-signals")); | ||
}); | ||
exports.getInstanceState = () => { | ||
exports.getInstanceProps = () => { | ||
if (!browserWindow.globalGridSignals) { | ||
throw new Error(constants_1.INIT_NOT_CALLED); | ||
} | ||
return browserWindow.globalGridSignals.getInstance(); | ||
return browserWindow.globalGridSignals.getInstanceProps(); | ||
}; | ||
@@ -33,0 +33,0 @@ exports.getInstance = () => { |
@@ -7,3 +7,3 @@ import { TrackEvent, InitProps, Instance, IdentityTypeEnum } from './types'; | ||
createSession: () => Promise<any>; | ||
getInstanceState: () => Instance; | ||
getInstanceProps: () => Instance; | ||
private sendOrCacheData; | ||
@@ -10,0 +10,0 @@ private trackEvent; |
@@ -110,3 +110,3 @@ "use strict"; | ||
}); | ||
this.getInstanceState = () => { | ||
this.getInstanceProps = () => { | ||
return this.instance; | ||
@@ -113,0 +113,0 @@ }; |
export * as types from './types'; | ||
export { init, getInstance, getInstanceState } from './browser-grid-signals'; | ||
export { init, getInstance, getInstanceProps } from './browser-grid-signals'; | ||
import GridSignals from './grid-signals'; | ||
export default GridSignals; |
@@ -29,4 +29,4 @@ "use strict"; | ||
Object.defineProperty(exports, "getInstance", { enumerable: true, get: function () { return browser_grid_signals_1.getInstance; } }); | ||
Object.defineProperty(exports, "getInstanceState", { enumerable: true, get: function () { return browser_grid_signals_1.getInstanceState; } }); | ||
Object.defineProperty(exports, "getInstanceProps", { enumerable: true, get: function () { return browser_grid_signals_1.getInstanceProps; } }); | ||
const grid_signals_1 = __importDefault(require("./grid-signals")); | ||
exports.default = grid_signals_1.default; |
{ | ||
"name": "@ombori/grid-signals", | ||
"version": "2.136.3", | ||
"version": "2.138.0", | ||
"main": "dist/index.js", | ||
@@ -32,3 +32,3 @@ "scripts": { | ||
}, | ||
"gitHead": "9fa2bf6c0e779c0d1b02d1091632c36f4317994d" | ||
"gitHead": "7333ec38c6d9502d42a32f412401f9b5a69d35dd" | ||
} |
@@ -14,3 +14,3 @@ import { isBrowser } from 'browser-or-node'; | ||
export const getInstanceState = () => { | ||
export const getInstanceProps = () => { | ||
if (!browserWindow.globalGridSignals) { | ||
@@ -20,3 +20,3 @@ throw new Error(INIT_NOT_CALLED); | ||
return browserWindow.globalGridSignals.getInstance() as Instance; | ||
return browserWindow.globalGridSignals.getInstanceProps() as Instance; | ||
}; | ||
@@ -23,0 +23,0 @@ |
@@ -154,3 +154,3 @@ import { v4 as uuid } from 'uuid'; | ||
public getInstanceState = () => { | ||
public getInstanceProps = () => { | ||
return this.instance; | ||
@@ -157,0 +157,0 @@ }; |
export * as types from './types'; | ||
export { init, getInstance, getInstanceState } from './browser-grid-signals'; | ||
export { init, getInstance, getInstanceProps } from './browser-grid-signals'; | ||
import GridSignals from './grid-signals'; | ||
export default GridSignals; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
118407