@ombori/grid-signals
Advanced tools
Comparing version 2.136.0 to 2.136.1
@@ -6,2 +6,13 @@ # Change Log | ||
## [2.136.1](https://github.com/ombori/gridapp/compare/v2.136.0...v2.136.1) (2021-12-12) | ||
### Bug Fixes | ||
* api endpoints and smaller lodash bundle ([ef5849c](https://github.com/ombori/gridapp/commit/ef5849c5b6cac28b386866af965d30493be48cbe)) | ||
# [2.136.0](https://github.com/ombori/gridapp/compare/v2.135.3...v2.136.0) (2021-12-10) | ||
@@ -8,0 +19,0 @@ |
@@ -13,15 +13,15 @@ "use strict"; | ||
if (NODE_ENV === 'development') { | ||
return 'https://analytics-qa.omborigrid.com/api'; | ||
return 'https://signal-qa.omborigrid.com/api'; | ||
} | ||
switch (dataResidency) { | ||
case types_1.DataResidencyEnum.AU: | ||
return 'https://session-au.omborigrid.com/api'; | ||
return 'https://signal-au.omborigrid.com/api'; | ||
case types_1.DataResidencyEnum.EU: | ||
return 'https://session-eu.omborigrid.com/api'; | ||
return 'https://signal-eu.omborigrid.com/api'; | ||
case types_1.DataResidencyEnum.IN: | ||
return 'https://session-in.omborigrid.com/api'; | ||
return 'https://signal-in.omborigrid.com/api'; | ||
case types_1.DataResidencyEnum.UAE: | ||
return 'https://session-uea.omborigrid.com/api'; | ||
return 'https://signal-uea.omborigrid.com/api'; | ||
case types_1.DataResidencyEnum.US: | ||
return 'https://session-us.omborigrid.com/api'; | ||
return 'https://signal-us.omborigrid.com/api'; | ||
default: | ||
@@ -28,0 +28,0 @@ throw new Error('Invalid data residency'); |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.shortenLookups = void 0; | ||
const lodash_1 = require("lodash"); | ||
const omitBy_1 = __importDefault(require("lodash/omitBy")); | ||
const isNil_1 = __importDefault(require("lodash/isNil")); | ||
exports.shortenLookups = { | ||
@@ -65,4 +69,4 @@ captureId: 'a', | ||
} | ||
return lodash_1.omitBy(result, lodash_1.isNil); | ||
return omitBy_1.default(result, isNil_1.default); | ||
} | ||
exports.default = shortenKeys; |
@@ -11,7 +11,10 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.flushCacheOnce = exports.cacheData = exports.cache = exports.supportsLocalStorage = void 0; | ||
const lodash_1 = require("lodash"); | ||
const once_1 = __importDefault(require("lodash/once")); | ||
const constants_1 = require("../constants"); | ||
exports.supportsLocalStorage = lodash_1.once(() => { | ||
exports.supportsLocalStorage = once_1.default(() => { | ||
const value = '_OMBORI_GRID_SIGNALS_CACHE_TEST'; | ||
@@ -51,4 +54,4 @@ try { | ||
exports.supportsLocalStorage() && localStorage.removeItem(constants_1.EVENTS_CACHE_KEY); | ||
exports.flushCacheOnce = lodash_1.once(flushCache); | ||
exports.flushCacheOnce = once_1.default(flushCache); | ||
}); | ||
exports.flushCacheOnce = lodash_1.once(flushCache); | ||
exports.flushCacheOnce = once_1.default(flushCache); |
{ | ||
"name": "@ombori/grid-signals", | ||
"version": "2.136.0", | ||
"version": "2.136.1", | ||
"main": "dist/index.js", | ||
@@ -32,3 +32,3 @@ "scripts": { | ||
}, | ||
"gitHead": "908055cf76da13eee02e5fc25d93c8fe43e4d33f" | ||
"gitHead": "d8b29891a8574f42151272c0cf48fd2a93b941ce" | ||
} |
@@ -15,3 +15,3 @@ import { DataResidencyEnum } from '../types'; | ||
if (NODE_ENV === 'development') { | ||
return 'https://analytics-qa.omborigrid.com/api'; | ||
return 'https://signal-qa.omborigrid.com/api'; | ||
} | ||
@@ -21,11 +21,11 @@ | ||
case DataResidencyEnum.AU: | ||
return 'https://session-au.omborigrid.com/api'; | ||
return 'https://signal-au.omborigrid.com/api'; | ||
case DataResidencyEnum.EU: | ||
return 'https://session-eu.omborigrid.com/api'; | ||
return 'https://signal-eu.omborigrid.com/api'; | ||
case DataResidencyEnum.IN: | ||
return 'https://session-in.omborigrid.com/api'; | ||
return 'https://signal-in.omborigrid.com/api'; | ||
case DataResidencyEnum.UAE: | ||
return 'https://session-uea.omborigrid.com/api'; | ||
return 'https://signal-uea.omborigrid.com/api'; | ||
case DataResidencyEnum.US: | ||
return 'https://session-us.omborigrid.com/api'; | ||
return 'https://signal-us.omborigrid.com/api'; | ||
default: | ||
@@ -32,0 +32,0 @@ throw new Error('Invalid data residency'); |
@@ -1,2 +0,3 @@ | ||
import { omitBy, isNil } from 'lodash'; | ||
import omitBy from 'lodash/omitBy'; | ||
import isNil from 'lodash/isNil'; | ||
@@ -3,0 +4,0 @@ export const shortenLookups: any = { |
@@ -1,2 +0,2 @@ | ||
import { once } from 'lodash'; | ||
import once from 'lodash/once'; | ||
import { DataRequestTypeEnum, SendOrCacheDataProps, RequestData } from '../types'; | ||
@@ -3,0 +3,0 @@ import { EVENTS_CACHE_KEY } from '../constants'; |
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
117705
2964