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

node-opcua-address-space-base

Package Overview
Dependencies
Maintainers
1
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-opcua-address-space-base - npm Package Compare versions

Comparing version 2.60.0 to 2.61.0

36

dist/bind_variable.d.ts

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

import { Variant } from "node-opcua-variant";
import { Variant, VariantLike } from "node-opcua-variant";
import { CallbackT, StatusCode } from "node-opcua-status-code";

@@ -6,6 +6,7 @@ import { HistoryReadResult, ReadAtTimeDetails, ReadEventDetails, ReadProcessedDetails, ReadRawModifiedDetails } from "node-opcua-types";

import { QualifiedNameLike } from "node-opcua-data-model";
import { DataValue } from "node-opcua-data-value";
import { UAVariable } from "./ua_variable";
import { ContinuationData, ISessionContext } from "./session_context";
export declare type VariableSetterVariation1 = (this: UAVariable, value: Variant) => StatusCode;
export declare type VariableSetterVariation2 = (this: UAVariable, value: Variant, callback: (err: Error | null, statusCode: StatusCode) => void) => void;
export declare type VariableSetterVariation2 = (this: UAVariable, value: Variant, callback: CallbackT<StatusCode>) => void;
export declare type VariableSetter = VariableSetterVariation1 | VariableSetterVariation2;

@@ -15,2 +16,9 @@ export declare type HistoryReadFunc = (context: ISessionContext, historyReadDetails: ReadRawModifiedDetails | ReadEventDetails | ReadProcessedDetails | ReadAtTimeDetails, indexRange: NumericRange | null, dataEncoding: QualifiedNameLike | null, continuationData: ContinuationData, callback: CallbackT<HistoryReadResult>) => void;

export declare type SetFunc = VariableSetter | null;
export declare type VariableDataValueGetterSync = (this: UAVariable) => DataValue;
export declare type VariableDataValueGetterPromise = (this: UAVariable) => Promise<DataValue>;
export declare type VariableDataValueGetterCallback = (this: UAVariable, callback: CallbackT<DataValue>) => void;
export declare type VariableDataValueSetterWithCallback = (this: UAVariable, dataValue: DataValue, callback: CallbackT<StatusCode>) => void;
export declare type VariableDataValueSetterWithPromise = (this: UAVariable, dataValue: DataValue) => Promise<StatusCode>;
export declare type TimestampGetFunc = VariableDataValueGetterSync | VariableDataValueGetterPromise | VariableDataValueGetterCallback;
export declare type TimestampSetFunc = VariableDataValueSetterWithCallback | VariableDataValueSetterWithPromise;
export interface BindVariableOptionsVariation1 {

@@ -23,1 +31,25 @@ get: GetFunc;

}
export interface BindVariableOptionsVariation2 {
set?: undefined;
get?: undefined;
timestamped_get: TimestampGetFunc;
timestamped_set?: TimestampSetFunc;
historyRead?: HistoryReadFunc;
}
export interface BindVariableOptionsVariation3 {
set?: undefined;
get?: undefined;
timestamped_get?: undefined;
timestamp_set?: undefined;
refreshFunc?: (callback: CallbackT<DataValue>) => void;
historyRead?: HistoryReadFunc;
}
export interface BindVariableOptionsVariation4 extends VariantLike {
set?: undefined;
get?: undefined;
timestamped_get?: undefined;
timestamp_set?: undefined;
refreshFunc?: (callback: CallbackT<DataValue>) => void;
historyRead?: HistoryReadFunc;
}
export declare type BindVariableOptions = BindVariableOptionsVariation1 | BindVariableOptionsVariation2 | BindVariableOptionsVariation3 | BindVariableOptionsVariation4;

@@ -11,3 +11,2 @@ import { NodeId, NodeIdLike } from "node-opcua-nodeid";

import { UAVariable } from "./ua_variable";
export declare type CloneExtraInfo = any;
export interface CloneFilter {

@@ -17,2 +16,9 @@ shouldKeep(node: BaseNode): boolean;

}
export declare const defaultCloneFilter: CloneFilter;
export interface CloneExtraInfo {
level: number;
pad(): string;
registerClonedObject(clonedObject: BaseNode, originalObject: BaseNode): void;
}
export declare const defaultCloneExtraInfo: CloneExtraInfo;
export interface CloneOptions {

@@ -19,0 +25,0 @@ namespace: INamespace;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.defaultCloneExtraInfo = exports.defaultCloneFilter = void 0;
exports.defaultCloneFilter = {
shouldKeep: () => true,
filterFor(node) {
return this;
}
};
exports.defaultCloneExtraInfo = {
level: 0,
pad() {
return " ".padEnd(this.level * 2);
},
registerClonedObject(clonedObject, originalObject) {
// nothing to do
}
};
//# sourceMappingURL=clone_options.js.map

37

dist/namespace.d.ts

@@ -5,4 +5,4 @@ import { QualifiedNameLike, AccessRestrictionsFlag, LocalizedTextLike } from "node-opcua-data-model";

import { VariantLike } from "node-opcua-variant";
import { StatusCode, StatusCodeCallback, UInt32 } from "node-opcua-basic-types";
import { DataValue, DataValueOptions } from "node-opcua-data-value";
import { UInt32 } from "node-opcua-basic-types";
import { DataValueOptions } from "node-opcua-data-value";
import { IAddressSpace } from "./address_space";

@@ -17,3 +17,3 @@ import { AddReferenceOpts, BaseNode, ConstructNodeIdOptions } from "./base_node";

import { UAVariableType } from "./ua_variable_type";
import { BindVariableOptionsVariation1, HistoryReadFunc } from "./bind_variable";
import { BindVariableOptions } from "./bind_variable";
import { UAView } from "./ua_view";

@@ -170,33 +170,2 @@ import { UAEventType } from "./ua_event_type";

}
export declare type DataValueCallback = (err: Error | null, dataValue?: DataValue) => void;
export declare type VariableDataValueGetterSync = () => DataValue;
export declare type VariableDataValueGetterAsync = (callback: DataValueCallback) => void;
export declare type VariableDataValueSetterWithCallback = (dataValue: DataValue, callback: StatusCodeCallback) => void;
export declare type VariableDataValueSetterWithPromise = (dataValue: DataValue) => Promise<StatusCode>;
export declare type TimestampGetFunc = VariableDataValueGetterSync | VariableDataValueGetterAsync;
export declare type TimestampSetFunc = VariableDataValueSetterWithCallback | VariableDataValueSetterWithPromise;
export interface BindVariableOptionsVariation2 {
set?: undefined;
get?: undefined;
timestamped_get: TimestampGetFunc;
timestamped_set?: TimestampSetFunc;
historyRead?: HistoryReadFunc;
}
export interface BindVariableOptionsVariation3 {
set?: undefined;
get?: undefined;
timestamped_get?: undefined;
timestamp_set?: undefined;
refreshFunc?: (callback: DataValueCallback) => void;
historyRead?: HistoryReadFunc;
}
export interface BindVariableOptionsVariation4 extends VariantLike {
set?: undefined;
get?: undefined;
timestamped_get?: undefined;
timestamp_set?: undefined;
refreshFunc?: (callback: DataValueCallback) => void;
historyRead?: HistoryReadFunc;
}
export declare type BindVariableOptions = BindVariableOptionsVariation1 | BindVariableOptionsVariation2 | BindVariableOptionsVariation3 | BindVariableOptionsVariation4;
export interface CreateDataTypeOptions extends AddBaseNodeOptions {

@@ -203,0 +172,0 @@ isAbstract: boolean;

@@ -12,3 +12,3 @@ import { NodeClass } from "node-opcua-data-model";

import { UAVariableT } from "./ua_variable_t";
import { BindVariableOptions } from "./namespace";
import { BindVariableOptions } from "./bind_variable";
import { UAMethod } from "./ua_method";

@@ -15,0 +15,0 @@ export interface InstantiateVariableOptions extends InstantiateOptions {

@@ -11,7 +11,6 @@ import { AttributeIds, CallbackT, PreciseClock, StatusCode, StatusCodeCallback, UInt32 } from "node-opcua-basic-types";

import { BaseNode, IPropertyAndComponentHolder } from "./base_node";
import { ISessionContext } from "./session_context";
import { ISessionContext, ContinuationData } from "./session_context";
import { UADataType } from "./ua_data_type";
import { UAVariableType } from "./ua_variable_type";
import { BindVariableOptions, DataValueCallback } from "./namespace";
import { ContinuationData } from ".";
import { BindVariableOptions } from "./bind_variable";
export interface IVariableHistorian {

@@ -213,3 +212,3 @@ /**

writeValue(context: ISessionContext, dataValue: DataValue, indexRange?: string | NumericRange | null): Promise<StatusCode>;
asyncRefresh(oldestDate: Date, callback: DataValueCallback): void;
asyncRefresh(oldestDate: Date, callback: CallbackT<DataValue>): void;
asyncRefresh(oldestDate: Date): Promise<DataValue>;

@@ -216,0 +215,0 @@ /**

{
"name": "node-opcua-address-space-base",
"version": "2.60.0",
"version": "2.61.0",
"description": "pure nodejs OPCUA SDK - module -address-space",

@@ -25,28 +25,28 @@ "main": "./dist/index.js",

"node-opcua-assert": "2.55.0",
"node-opcua-basic-types": "2.60.0",
"node-opcua-client-dynamic-extension-object": "2.60.0",
"node-opcua-basic-types": "2.61.0",
"node-opcua-client-dynamic-extension-object": "2.61.0",
"node-opcua-constants": "2.52.0",
"node-opcua-data-access": "2.60.0",
"node-opcua-data-model": "2.60.0",
"node-opcua-data-value": "2.60.0",
"node-opcua-date-time": "2.60.0",
"node-opcua-debug": "2.60.0",
"node-opcua-data-access": "2.61.0",
"node-opcua-data-model": "2.61.0",
"node-opcua-data-value": "2.61.0",
"node-opcua-date-time": "2.61.0",
"node-opcua-debug": "2.61.0",
"node-opcua-enum": "2.55.0",
"node-opcua-factory": "2.60.0",
"node-opcua-nodeid": "2.60.0",
"node-opcua-numeric-range": "2.60.0",
"node-opcua-object-registry": "2.60.0",
"node-opcua-pseudo-session": "2.60.0",
"node-opcua-schemas": "2.60.0",
"node-opcua-service-browse": "2.60.0",
"node-opcua-service-call": "2.60.0",
"node-opcua-service-filter": "2.60.0",
"node-opcua-service-history": "2.60.0",
"node-opcua-service-translate-browse-path": "2.60.0",
"node-opcua-service-write": "2.60.0",
"node-opcua-factory": "2.61.0",
"node-opcua-nodeid": "2.61.0",
"node-opcua-numeric-range": "2.61.0",
"node-opcua-object-registry": "2.61.0",
"node-opcua-pseudo-session": "2.61.0",
"node-opcua-schemas": "2.61.0",
"node-opcua-service-browse": "2.61.0",
"node-opcua-service-call": "2.61.0",
"node-opcua-service-filter": "2.61.0",
"node-opcua-service-history": "2.61.0",
"node-opcua-service-translate-browse-path": "2.61.0",
"node-opcua-service-write": "2.61.0",
"node-opcua-status-code": "2.56.0",
"node-opcua-types": "2.60.0",
"node-opcua-types": "2.61.0",
"node-opcua-utils": "2.60.0",
"node-opcua-variant": "2.60.0",
"node-opcua-xml2json": "2.60.0",
"node-opcua-variant": "2.61.0",
"node-opcua-xml2json": "2.61.0",
"set-prototype-of": "^1.0.0",

@@ -59,7 +59,7 @@ "thenify": "^3.3.1",

"node-opcua-binary-stream": "2.55.0",
"node-opcua-extension-object": "2.60.0",
"node-opcua-leak-detector": "2.60.0",
"node-opcua-extension-object": "2.61.0",
"node-opcua-leak-detector": "2.61.0",
"node-opcua-nodesets": "2.57.0",
"node-opcua-packet-analyzer": "2.60.0",
"node-opcua-test-fixtures": "2.60.0",
"node-opcua-packet-analyzer": "2.61.0",
"node-opcua-test-fixtures": "2.61.0",
"should": "^13.2.3",

@@ -84,3 +84,3 @@ "sinon": "^12.0.1",

"homepage": "http://node-opcua.github.io/",
"gitHead": "56dc8584b9118ee2f3bfb0b2e9d456b609ccbac8"
"gitHead": "dd8776f047686ca791989f27e11ee48bfd8b61b7"
}

@@ -1,3 +0,3 @@

import { Variant } from "node-opcua-variant";
import { CallbackT, StatusCode } from "node-opcua-status-code";
import { Variant, VariantLike } from "node-opcua-variant";
import { CallbackT, StatusCode, StatusCodeCallback } from "node-opcua-status-code";
import {

@@ -12,14 +12,10 @@ HistoryReadResult,

import { QualifiedNameLike } from "node-opcua-data-model";
import { DataValue } from "node-opcua-data-value";
import { UAVariable } from "./ua_variable";
import { ContinuationData, ISessionContext } from "./session_context";
import { ContinuationPoint } from "./continuation_point";
export type VariableSetterVariation1 = (this: UAVariable, value: Variant) => StatusCode;
export type VariableSetterVariation2 = (
this: UAVariable,
value: Variant,
callback: (err: Error | null, statusCode: StatusCode) => void
) => void;
export type VariableSetterVariation2 = (this: UAVariable, value: Variant, callback: CallbackT<StatusCode>) => void;

@@ -40,2 +36,12 @@ export type VariableSetter = VariableSetterVariation1 | VariableSetterVariation2;

export type VariableDataValueGetterSync = (this: UAVariable) => DataValue;
export type VariableDataValueGetterPromise = (this: UAVariable) => Promise<DataValue>;
export type VariableDataValueGetterCallback = (this: UAVariable, callback: CallbackT<DataValue>) => void;
export type VariableDataValueSetterWithCallback = (this: UAVariable, dataValue: DataValue, callback: CallbackT<StatusCode>) => void;
export type VariableDataValueSetterWithPromise = (this: UAVariable, dataValue: DataValue) => Promise<StatusCode>;
export type TimestampGetFunc = VariableDataValueGetterSync | VariableDataValueGetterPromise | VariableDataValueGetterCallback;
export type TimestampSetFunc = VariableDataValueSetterWithCallback | VariableDataValueSetterWithPromise;
export interface BindVariableOptionsVariation1 {

@@ -48,1 +54,31 @@ get: GetFunc;

}
export interface BindVariableOptionsVariation2 {
set?: undefined;
get?: undefined;
timestamped_get: TimestampGetFunc;
timestamped_set?: TimestampSetFunc;
historyRead?: HistoryReadFunc;
}
export interface BindVariableOptionsVariation3 {
set?: undefined;
get?: undefined;
timestamped_get?: undefined;
timestamp_set?: undefined;
refreshFunc?: (callback: CallbackT<DataValue>) => void;
historyRead?: HistoryReadFunc;
}
export interface BindVariableOptionsVariation4 extends VariantLike {
set?: undefined;
get?: undefined;
timestamped_get?: undefined;
timestamp_set?: undefined;
refreshFunc?: (callback: CallbackT<DataValue>) => void;
historyRead?: HistoryReadFunc;
}
export type BindVariableOptions =
| BindVariableOptionsVariation1
| BindVariableOptionsVariation2
| BindVariableOptionsVariation3
| BindVariableOptionsVariation4;

@@ -13,4 +13,2 @@ import { NodeId, NodeIdLike } from "node-opcua-nodeid";

export type CloneExtraInfo = any;
export interface CloneFilter {

@@ -20,3 +18,25 @@ shouldKeep(node: BaseNode): boolean;

}
export const defaultCloneFilter: CloneFilter = {
shouldKeep: () => true,
filterFor(node: BaseNode) {
return this;
}
};
export interface CloneExtraInfo {
/* */
level: number;
pad(): string;
registerClonedObject(clonedObject: BaseNode, originalObject: BaseNode): void;
}
export const defaultCloneExtraInfo: CloneExtraInfo = {
level: 0,
pad(this: CloneExtraInfo) {
return " ".padEnd(this.level * 2);
},
registerClonedObject(clonedObject: BaseNode, originalObject: BaseNode): void {
// nothing to do
}
};
export interface CloneOptions /* extends ConstructNodeIdOptions */ {

@@ -23,0 +43,0 @@ namespace: INamespace;

@@ -28,3 +28,3 @@ import { QualifiedNameLike, AccessRestrictionsFlag, LocalizedTextLike } from "node-opcua-data-model";

import { UAVariableType } from "./ua_variable_type";
import { BindVariableOptionsVariation1, HistoryReadFunc } from "./bind_variable";
import { BindVariableOptions, BindVariableOptionsVariation1, HistoryReadFunc } from "./bind_variable";
import { UAView } from "./ua_view";

@@ -209,43 +209,2 @@ import { UAEventType } from "./ua_event_type";

export type DataValueCallback = (err: Error | null, dataValue?: DataValue) => void;
export type VariableDataValueGetterSync = () => DataValue;
export type VariableDataValueGetterAsync = (callback: DataValueCallback) => void;
export type VariableDataValueSetterWithCallback = (dataValue: DataValue, callback: StatusCodeCallback) => void;
export type VariableDataValueSetterWithPromise = (dataValue: DataValue) => Promise<StatusCode>;
export type TimestampGetFunc = VariableDataValueGetterSync | VariableDataValueGetterAsync;
export type TimestampSetFunc = VariableDataValueSetterWithCallback | VariableDataValueSetterWithPromise;
export interface BindVariableOptionsVariation2 {
set?: undefined;
get?: undefined;
timestamped_get: TimestampGetFunc;
timestamped_set?: TimestampSetFunc;
historyRead?: HistoryReadFunc;
}
export interface BindVariableOptionsVariation3 {
set?: undefined;
get?: undefined;
timestamped_get?: undefined;
timestamp_set?: undefined;
refreshFunc?: (callback: DataValueCallback) => void;
historyRead?: HistoryReadFunc;
}
export interface BindVariableOptionsVariation4 extends VariantLike {
set?: undefined;
get?: undefined;
timestamped_get?: undefined;
timestamp_set?: undefined;
refreshFunc?: (callback: DataValueCallback) => void;
historyRead?: HistoryReadFunc;
}
export type BindVariableOptions =
| BindVariableOptionsVariation1
| BindVariableOptionsVariation2
| BindVariableOptionsVariation3
| BindVariableOptionsVariation4;
export interface CreateDataTypeOptions extends AddBaseNodeOptions {

@@ -252,0 +211,0 @@ isAbstract: boolean;

@@ -13,3 +13,3 @@ import { NodeClass } from "node-opcua-data-model";

import { UAVariableT } from "./ua_variable_t";
import { BindVariableOptions } from "./namespace";
import { BindVariableOptions } from "./bind_variable";
import { UAMethod } from "./ua_method";

@@ -16,0 +16,0 @@

@@ -7,2 +7,3 @@ import { AttributeIds, CallbackT, PreciseClock, StatusCode, StatusCodeCallback, UInt32 } from "node-opcua-basic-types";

import { NumericRange } from "node-opcua-numeric-range";
import {

@@ -22,8 +23,6 @@ WriteValueOptions,

import { BaseNode, IPropertyAndComponentHolder } from "./base_node";
import { ContinuationPoint } from "./continuation_point";
import { ISessionContext } from "./session_context";
import { ISessionContext, ContinuationData } from "./session_context";
import { UADataType } from "./ua_data_type";
import { UAVariableType } from "./ua_variable_type";
import { BindVariableOptions, DataValueCallback } from "./namespace";
import { ContinuationData } from ".";
import { BindVariableOptions } from "./bind_variable";

@@ -277,3 +276,3 @@ export interface IVariableHistorian {

asyncRefresh(oldestDate: Date, callback: DataValueCallback): void;
asyncRefresh(oldestDate: Date, callback: CallbackT<DataValue>): void;

@@ -280,0 +279,0 @@ asyncRefresh(oldestDate: Date): Promise<DataValue>;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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