Socket
Socket
Sign inDemoInstall

@worldsibu/convector-core-storage

Package Overview
Dependencies
6
Maintainers
2
Versions
187
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.10-0-alpha.74462599 to 1.3.10-0-alpha.2486f88c

3

dist/src/base-storage.d.ts

@@ -0,2 +1,5 @@

import { Namespace } from 'cls-hooked';
export declare const BaseStorageNamespace: Namespace;
export declare abstract class BaseStorage {
private static _currentStorage;
static current: BaseStorage;

@@ -3,0 +6,0 @@ abstract get(id: string, storageOptions?: any): Promise<any>;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var g = require("window-or-global");
var cls_hooked_1 = require("cls-hooked");
exports.BaseStorageNamespace = g.BaseStorageNamespace || cls_hooked_1.createNamespace('@worldsibu/convector-core-storage');
g.BaseStorageNamespace = exports.BaseStorageNamespace;
var BaseStorage = (function () {

@@ -9,6 +12,11 @@ function BaseStorage() {

get: function () {
return g.ConvectorBaseStorageCurrent;
return exports.BaseStorageNamespace.active ? exports.BaseStorageNamespace.get('current') : this._currentStorage;
},
set: function (storage) {
g.ConvectorBaseStorageCurrent = storage;
if (exports.BaseStorageNamespace.active) {
exports.BaseStorageNamespace.set('current', storage);
}
else {
this._currentStorage = storage;
}
},

@@ -15,0 +23,0 @@ enumerable: true,

6

package.json
{
"name": "@worldsibu/convector-core-storage",
"version": "1.3.10-0-alpha.74462599",
"version": "1.3.10-0-alpha.2486f88c",
"description": "Convector Core Storage class. This is not intended to be used as a provider but as an abstract interface of one",

@@ -43,3 +43,5 @@ "license": "Apache-2.0",

"dependencies": {
"@worldsibu/convector-core-errors": "1.3.10-0-alpha.74462599",
"@types/cls-hooked": "^4.3.1",
"@worldsibu/convector-core-errors": "1.3.10-0-alpha.2486f88c",
"cls-hooked": "git+https://github.com/rodolfoleal/cls-hooked.git",
"tslib": "^1.9.0",

@@ -46,0 +48,0 @@ "window-or-global": "^1.0.1"

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc