node-opcua-object-registry
Advanced tools
Comparing version 2.82.0 to 2.83.0
export declare class ObjectRegistry { | ||
static doDebug: boolean; | ||
static registries: any; | ||
private _objectType; | ||
private _objectTypeName?; | ||
private readonly _cache; | ||
constructor(objectType?: any); | ||
constructor(); | ||
getClassName(): string; | ||
@@ -8,0 +8,0 @@ register(obj: any): void; |
@@ -13,4 +13,3 @@ "use strict"; | ||
class ObjectRegistry { | ||
constructor(objectType) { | ||
this._objectType = objectType; | ||
constructor() { | ||
this._cache = {}; | ||
@@ -20,7 +19,7 @@ gRegistries.push(this); | ||
getClassName() { | ||
return this._objectType ? this._objectType.name : "<???>"; | ||
return this._objectTypeName ? this._objectTypeName : "<???>"; | ||
} | ||
register(obj) { | ||
if (!this._objectType) { | ||
this._objectType = obj.constructor; | ||
if (!this._objectTypeName) { | ||
this._objectTypeName = obj.constructor.name; | ||
} | ||
@@ -27,0 +26,0 @@ if (!obj._____hash) { |
{ | ||
"name": "node-opcua-object-registry", | ||
"version": "2.82.0", | ||
"version": "2.83.0", | ||
"description": "pure nodejs OPCUA SDK - module -object-registry", | ||
@@ -17,3 +17,3 @@ "main": "./dist/index.js", | ||
"node-opcua-assert": "2.77.0", | ||
"node-opcua-debug": "2.82.0" | ||
"node-opcua-debug": "2.83.0" | ||
}, | ||
@@ -36,3 +36,3 @@ "devDependencies": { | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "2f66e1fe69c825305f94b15ca17cff066aa37496" | ||
"gitHead": "3311f8ce9e86837fde72e923f3121072008ccdd4" | ||
} |
@@ -14,7 +14,6 @@ /** | ||
private _objectType: any; | ||
private readonly _cache: any; | ||
private _objectTypeName?: string; | ||
private readonly _cache: Record<string, object | null>; | ||
constructor(objectType?: any) { | ||
this._objectType = objectType; | ||
constructor() { | ||
this._cache = {}; | ||
@@ -25,8 +24,8 @@ gRegistries.push(this); | ||
public getClassName(): string { | ||
return this._objectType ? this._objectType.name : "<???>"; | ||
return this._objectTypeName ? this._objectTypeName : "<???>"; | ||
} | ||
public register(obj: any): void { | ||
if (!this._objectType) { | ||
this._objectType = obj.constructor; | ||
if (!this._objectTypeName) { | ||
this._objectTypeName = obj.constructor.name; | ||
} | ||
@@ -33,0 +32,0 @@ |
Sorry, the diff of this file is not supported yet
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
10465
163
+ Addednode-opcua-buffer-utils@2.83.0(transitive)
+ Addednode-opcua-debug@2.83.0(transitive)
- Removednode-opcua-buffer-utils@2.82.0(transitive)
- Removednode-opcua-debug@2.82.0(transitive)
Updatednode-opcua-debug@2.83.0