@onekeyfe/cross-inpage-provider-core
Advanced tools
Comparing version 1.1.43 to 1.1.44
@@ -21,2 +21,3 @@ "use strict"; | ||
const consts_1 = require("../consts"); | ||
const lodash_1 = require("lodash"); | ||
const ms_1 = __importDefault(require("ms")); | ||
@@ -226,3 +227,8 @@ const storageKey = consts_1.DEBUG_LOGGER_STORAGE_KEY; | ||
else { | ||
yield exportsBrowser.storage.removeItem(storageKey); | ||
if ((0, lodash_1.isNil)(namespaces)) { | ||
yield exportsBrowser.storage.removeItem(storageKey); | ||
} | ||
else { | ||
yield exportsBrowser.storage.setItem(storageKey, ''); | ||
} | ||
} | ||
@@ -229,0 +235,0 @@ } |
@@ -17,8 +17,8 @@ "use strict"; | ||
/* eslint-disable @typescript-eslint/ban-ts-comment */ | ||
const CrossEventEmitter_1 = require("./CrossEventEmitter"); | ||
const isPlainObject_1 = __importDefault(require("lodash/isPlainObject")); | ||
const isString_1 = __importDefault(require("lodash/isString")); | ||
const CrossEventEmitter_1 = require("./CrossEventEmitter"); | ||
const loggers_1 = require("./loggers"); | ||
const cross_inpage_provider_errors_1 = require("@onekeyfe/cross-inpage-provider-errors"); | ||
const cross_inpage_provider_types_1 = require("@onekeyfe/cross-inpage-provider-types"); | ||
const cross_inpage_provider_errors_1 = require("@onekeyfe/cross-inpage-provider-errors"); | ||
const versionInfo_1 = __importDefault(require("./versionInfo")); | ||
@@ -35,2 +35,3 @@ function toPlainError(errorInfo) { | ||
className: errorInfo.className, | ||
autoToast: errorInfo.autoToast, | ||
}; | ||
@@ -37,0 +38,0 @@ } |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const version = '1.1.43'; | ||
const version = '1.1.44'; | ||
const versionBuild = '2020-0101-1'; | ||
@@ -5,0 +5,0 @@ exports.default = { |
@@ -16,2 +16,3 @@ /* eslint-disable */ | ||
import { DEBUG_LOGGER_STORAGE_KEY } from '../consts'; | ||
import { isNil } from 'lodash'; | ||
import humanize from 'ms'; | ||
@@ -221,3 +222,8 @@ const storageKey = DEBUG_LOGGER_STORAGE_KEY; | ||
else { | ||
yield exportsBrowser.storage.removeItem(storageKey); | ||
if (isNil(namespaces)) { | ||
yield exportsBrowser.storage.removeItem(storageKey); | ||
} | ||
else { | ||
yield exportsBrowser.storage.setItem(storageKey, ''); | ||
} | ||
} | ||
@@ -224,0 +230,0 @@ } |
import { CrossEventEmitter } from './CrossEventEmitter'; | ||
import { IInjectedProviderNamesStrings, IJsBridgeConfig, IJsBridgeMessagePayload, IJsonRpcResponse, IDebugLogger } from '@onekeyfe/cross-inpage-provider-types'; | ||
import { IDebugLogger, IInjectedProviderNamesStrings, IJsBridgeConfig, IJsBridgeMessagePayload, IJsonRpcResponse } from '@onekeyfe/cross-inpage-provider-types'; | ||
declare function isLegacyExtMessage(payload: unknown): boolean; | ||
@@ -4,0 +4,0 @@ declare abstract class JsBridgeBase extends CrossEventEmitter { |
@@ -11,8 +11,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
/* eslint-disable @typescript-eslint/ban-ts-comment */ | ||
import { CrossEventEmitter } from './CrossEventEmitter'; | ||
import isPlainObject from 'lodash/isPlainObject'; | ||
import isString from 'lodash/isString'; | ||
import { CrossEventEmitter } from './CrossEventEmitter'; | ||
import { appDebugLogger, consoleErrorInDev } from './loggers'; | ||
import { web3Errors } from '@onekeyfe/cross-inpage-provider-errors'; | ||
import { IJsBridgeMessageTypes, } from '@onekeyfe/cross-inpage-provider-types'; | ||
import { web3Errors } from '@onekeyfe/cross-inpage-provider-errors'; | ||
import versionInfo from './versionInfo'; | ||
@@ -29,2 +29,3 @@ function toPlainError(errorInfo) { | ||
className: errorInfo.className, | ||
autoToast: errorInfo.autoToast, | ||
}; | ||
@@ -31,0 +32,0 @@ } |
@@ -1,2 +0,2 @@ | ||
const version = '1.1.43'; | ||
const version = '1.1.44'; | ||
const versionBuild = '2020-0101-1'; | ||
@@ -3,0 +3,0 @@ export default { |
{ | ||
"name": "@onekeyfe/cross-inpage-provider-core", | ||
"version": "1.1.43", | ||
"version": "1.1.44", | ||
"keywords": [ | ||
@@ -32,5 +32,5 @@ "cross-inpage-provider" | ||
"dependencies": { | ||
"@onekeyfe/cross-inpage-provider-errors": "1.1.43", | ||
"@onekeyfe/cross-inpage-provider-events": "1.1.43", | ||
"@onekeyfe/cross-inpage-provider-types": "1.1.43", | ||
"@onekeyfe/cross-inpage-provider-errors": "1.1.44", | ||
"@onekeyfe/cross-inpage-provider-events": "1.1.44", | ||
"@onekeyfe/cross-inpage-provider-types": "1.1.44", | ||
"events": "^3.3.0", | ||
@@ -40,3 +40,3 @@ "lodash": "^4.17.21", | ||
}, | ||
"gitHead": "9be95a09209e5dce1aa2af3847f6f8c48d226624" | ||
"gitHead": "a6b373f9438503447b69f35c407add9d7df9fb35" | ||
} |
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
162807
3983
132
2
6
1
57
+ Added@onekeyfe/cross-inpage-provider-errors@1.1.44(transitive)
+ Added@onekeyfe/cross-inpage-provider-events@1.1.44(transitive)
+ Added@onekeyfe/cross-inpage-provider-types@1.1.44(transitive)
- Removed@onekeyfe/cross-inpage-provider-errors@1.1.43(transitive)
- Removed@onekeyfe/cross-inpage-provider-events@1.1.43(transitive)
- Removed@onekeyfe/cross-inpage-provider-types@1.1.43(transitive)