Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-opcua-object-registry

Package Overview
Dependencies
Maintainers
1
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-opcua-object-registry - npm Package Compare versions

Comparing version 2.82.0 to 2.83.0

4

dist/objectRegistry.d.ts
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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc