@agconnect/core
Advanced tools
Comparing version 1.2.1 to 1.3.0-beta
@@ -8,1 +8,7 @@ export declare const DEFAULT_CATEGORY = "[DEFAULT_CATEGORY]"; | ||
} | ||
export declare class InstanceMap<T> { | ||
private factory; | ||
private instanceMap; | ||
constructor(creator: (args: any[]) => T); | ||
get(args?: any): T; | ||
} |
@@ -1,1 +0,1 @@ | ||
var t="[DEFAULT_CATEGORY]",n=function(){function t(t){this.factory=t}return t.prototype.get=function(){return null==this.instance&&(this.instance=this.factory()),this.instance},t}();export{t as DEFAULT_CATEGORY,n as Singleton}; | ||
var t="[DEFAULT_CATEGORY]",n=function(){function t(t){this.factory=t}return t.prototype.get=function(){return null==this.instance&&(this.instance=this.factory()),this.instance},t}(),i=function(){function t(t){this.instanceMap={},this.factory=t}return t.prototype.get=function(t){if(t&&Array.isArray(t)&&t.length>=1)return this.instanceMap[t[0]]||(this.instanceMap[t[0]]=this.factory(t)),this.instanceMap[t[0]];var n=new Array;return n[0]="[DEFAULT_CATEGORY]",this.get(n)},t}();export{t as DEFAULT_CATEGORY,i as InstanceMap,n as Singleton}; |
@@ -1,1 +0,1 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=function(){function t(t){this.factory=t}return t.prototype.get=function(){return null==this.instance&&(this.instance=this.factory()),this.instance},t}();exports.DEFAULT_CATEGORY="[DEFAULT_CATEGORY]",exports.Singleton=t; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=function(){function t(t){this.factory=t}return t.prototype.get=function(){return null==this.instance&&(this.instance=this.factory()),this.instance},t}(),n=function(){function t(t){this.instanceMap={},this.factory=t}return t.prototype.get=function(t){if(t&&Array.isArray(t)&&t.length>=1)return this.instanceMap[t[0]]||(this.instanceMap[t[0]]=this.factory(t)),this.instanceMap[t[0]];var n=new Array;return n[0]="[DEFAULT_CATEGORY]",this.get(n)},t}();exports.DEFAULT_CATEGORY="[DEFAULT_CATEGORY]",exports.InstanceMap=n,exports.Singleton=t; |
{ | ||
"name": "@agconnect/core", | ||
"version": "1.2.1", | ||
"description": "@agconnect/core", | ||
"version": "1.3.0-beta", | ||
"description": "agconnect core", | ||
"main": "./dist/index.node.cjs.js", | ||
@@ -16,3 +16,3 @@ "module": "./dist/index.esm.js", | ||
"rollup-plugin-terser": "^5.3.1", | ||
"rollup-plugin-typescript2": "^0.29.0", | ||
"rollup-plugin-typescript2": "^0.30.0", | ||
"typescript": "^4.0.5" | ||
@@ -19,0 +19,0 @@ }, |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
2147
19
0
2