node-opcua-address-space
Advanced tools
Comparing version 2.0.0-alpha.10 to 2.0.0-alpha.11
@@ -187,3 +187,4 @@ /// <reference types="node" /> | ||
} | ||
export declare type MethodFunctor = (inputArguments: Argument[], context: SessionContext, callback: (err: Error | null, callMethodResponse?: CallMethodResponse) => void) => void; | ||
export declare type MethodFunctorCallback = (err: Error | null, callMethodResponse: CallMethodResponse) => void; | ||
export declare type MethodFunctor = (this: UAMethod, inputArguments: Variant[], context: SessionContext, callback: MethodFunctorCallback) => void; | ||
export declare class UAMethod extends BaseNode { | ||
@@ -207,3 +208,3 @@ readonly nodeClass: NodeClass.Method; | ||
*/ | ||
execute(inputArguments: null | VariantLike[], context: SessionContext, callback: CallMethodResponse): void; | ||
execute(inputArguments: null | VariantLike[], context: SessionContext, callback: MethodFunctorCallback): void; | ||
execute(inputArguments: null | VariantLike[], context: SessionContext): Promise<CallMethodResponse>; | ||
@@ -422,8 +423,9 @@ clone(options: any, optionalFilter?: any, extraInfo?: any): UAMethod; | ||
index: number; | ||
findObjectType(objectType: string): UAObjectType; | ||
findEventType(objectType: string): UAObjectType; | ||
findVariableType(variableType: string): UAVariableType; | ||
findDataType(dataType: string): UADataType; | ||
findReferenceType(referenceType: string): UAReferenceType; | ||
findReferenceTypeFromInverseName(referenceType: string): UAReferenceType; | ||
findObjectType(objectType: string): UAObjectType | null; | ||
findEventType(objectType: string): UAObjectType | null; | ||
findVariableType(variableType: string): UAVariableType | null; | ||
findDataType(dataType: string): UADataType | null; | ||
findReferenceType(referenceType: string): UAReferenceType | null; | ||
findReferenceTypeFromInverseName(referenceType: string): UAReferenceType | null; | ||
findNode(nodeId: NodeIdLike): BaseNode | null; | ||
addAlias(aliasName: string, nodeId: NodeId): void; | ||
@@ -473,3 +475,3 @@ addObjectType(options: AddObjectTypeOptions): UAObjectType; | ||
outputArguments: ArgumentOptions[]; | ||
}): void; | ||
}): UAMethod; | ||
toNodeset2XML(): string; | ||
@@ -476,0 +478,0 @@ } |
@@ -8,4 +8,4 @@ "use strict"; | ||
const makeNodeId = require("node-opcua-nodeid").makeNodeId; | ||
const resolveNodeId = require("node-opcua-nodeid").resolveNodeId; | ||
const sameNodeId = require("node-opcua-nodeid").sameNodeId; | ||
import { resolveNodeId } from "node-opcua-nodeid"; | ||
import { sameNodeId } from "node-opcua-nodeid"; | ||
const assert = require("node-opcua-assert").assert; | ||
@@ -12,0 +12,0 @@ const _ = require("underscore"); |
{ | ||
"name": "node-opcua-address-space", | ||
"version": "2.0.0-alpha.10", | ||
"version": "2.0.0-alpha.11", | ||
"description": "pure nodejs OPCUA SDK - module -address-space", | ||
@@ -19,28 +19,28 @@ "main": "./src/index_current.js", | ||
"node-opcua-assert": "^2.0.0-alpha.10", | ||
"node-opcua-basic-types": "^2.0.0-alpha.10", | ||
"node-opcua-common": "^2.0.0-alpha.10", | ||
"node-opcua-basic-types": "^2.0.0-alpha.11", | ||
"node-opcua-common": "^2.0.0-alpha.11", | ||
"node-opcua-constants": "^2.0.0-alpha.9", | ||
"node-opcua-crypto": "^1.0.1", | ||
"node-opcua-data-access": "^2.0.0-alpha.10", | ||
"node-opcua-data-model": "^2.0.0-alpha.10", | ||
"node-opcua-data-value": "^2.0.0-alpha.10", | ||
"node-opcua-data-access": "^2.0.0-alpha.11", | ||
"node-opcua-data-model": "^2.0.0-alpha.11", | ||
"node-opcua-data-value": "^2.0.0-alpha.11", | ||
"node-opcua-date-time": "^2.0.0-alpha.10", | ||
"node-opcua-debug": "^2.0.0-alpha.10", | ||
"node-opcua-enum": "^2.0.0-alpha.10", | ||
"node-opcua-factory": "^2.0.0-alpha.10", | ||
"node-opcua-nodeid": "^2.0.0-alpha.10", | ||
"node-opcua-numeric-range": "^2.0.0-alpha.10", | ||
"node-opcua-factory": "^2.0.0-alpha.11", | ||
"node-opcua-nodeid": "^2.0.0-alpha.11", | ||
"node-opcua-numeric-range": "^2.0.0-alpha.11", | ||
"node-opcua-object-registry": "^2.0.0-alpha.10", | ||
"node-opcua-pseudo-session": "^2.0.0-alpha.10", | ||
"node-opcua-service-browse": "^2.0.0-alpha.10", | ||
"node-opcua-service-call": "^2.0.0-alpha.10", | ||
"node-opcua-service-filter": "^2.0.0-alpha.10", | ||
"node-opcua-service-history": "^2.0.0-alpha.10", | ||
"node-opcua-service-session": "^2.0.0-alpha.10", | ||
"node-opcua-service-translate-browse-path": "^2.0.0-alpha.10", | ||
"node-opcua-service-write": "^2.0.0-alpha.10", | ||
"node-opcua-pseudo-session": "^2.0.0-alpha.11", | ||
"node-opcua-service-browse": "^2.0.0-alpha.11", | ||
"node-opcua-service-call": "^2.0.0-alpha.11", | ||
"node-opcua-service-filter": "^2.0.0-alpha.11", | ||
"node-opcua-service-history": "^2.0.0-alpha.11", | ||
"node-opcua-service-session": "^2.0.0-alpha.11", | ||
"node-opcua-service-translate-browse-path": "^2.0.0-alpha.11", | ||
"node-opcua-service-write": "^2.0.0-alpha.11", | ||
"node-opcua-status-code": "^2.0.0-alpha.10", | ||
"node-opcua-types": "^2.0.0-alpha.10", | ||
"node-opcua-types": "^2.0.0-alpha.11", | ||
"node-opcua-utils": "^2.0.0-alpha.10", | ||
"node-opcua-variant": "^2.0.0-alpha.10", | ||
"node-opcua-variant": "^2.0.0-alpha.11", | ||
"node-opcua-xml2json": "^2.0.0-alpha.10", | ||
@@ -59,8 +59,8 @@ "object.values": "^1.1.0", | ||
"node-opcua-buffer-utils": "^2.0.0-alpha.10", | ||
"node-opcua-extension-object": "^2.0.0-alpha.10", | ||
"node-opcua-generator": "^2.0.0-alpha.10", | ||
"node-opcua-extension-object": "^2.0.0-alpha.11", | ||
"node-opcua-generator": "^2.0.0-alpha.11", | ||
"node-opcua-guid": "^2.0.0-alpha.10", | ||
"node-opcua-leak-detector": "^2.0.0-alpha.10", | ||
"node-opcua-nodesets": "^2.0.0-alpha.9", | ||
"node-opcua-packet-analyzer": "^2.0.0-alpha.10", | ||
"node-opcua-packet-analyzer": "^2.0.0-alpha.11", | ||
"node-opcua-test-fixtures": "^2.0.0-alpha.9", | ||
@@ -86,3 +86,3 @@ "should": "13.2.3", | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "a4fd47cebc405a37470fa015e98148ec212a8c29" | ||
"gitHead": "bf7ea24732637e662af9b5b63941388e89fd3427" | ||
} |
@@ -359,6 +359,9 @@ // tslint:disable:max-classes-per-file | ||
export type MethodFunctorCallback = (err: Error | null, callMethodResponse: CallMethodResponse) => void; | ||
export type MethodFunctor = ( | ||
inputArguments: Argument[], | ||
this: UAMethod, | ||
inputArguments: Variant[], | ||
context: SessionContext, | ||
callback: (err: Error | null, callMethodResponse?: CallMethodResponse) => void | ||
callback: MethodFunctorCallback | ||
) => void; | ||
@@ -393,3 +396,3 @@ | ||
context: SessionContext, | ||
callback: CallMethodResponse | ||
callback: MethodFunctorCallback | ||
): void; | ||
@@ -674,14 +677,20 @@ | ||
findObjectType(objectType: string): UAObjectType; | ||
// ------------------------------------------------------------------------- | ||
findEventType(objectType: string): UAObjectType; | ||
findObjectType(objectType: string): UAObjectType | null; | ||
findVariableType(variableType: string): UAVariableType; | ||
findEventType(objectType: string): UAObjectType | null; | ||
findDataType(dataType: string): UADataType; | ||
findVariableType(variableType: string): UAVariableType | null; | ||
findReferenceType(referenceType: string): UAReferenceType; | ||
findDataType(dataType: string): UADataType | null; | ||
findReferenceTypeFromInverseName(referenceType: string): UAReferenceType; | ||
findReferenceType(referenceType: string): UAReferenceType | null; | ||
findReferenceTypeFromInverseName(referenceType: string): UAReferenceType | null; | ||
findNode(nodeId: NodeIdLike): BaseNode | null; | ||
// ------------------------------------------------------------------------- | ||
addAlias(aliasName: string, nodeId: NodeId): void; | ||
@@ -707,2 +716,4 @@ | ||
// ------------------------------------------------------------------------- | ||
deleteNode(node: NodeId | BaseNode): void; | ||
@@ -746,3 +757,3 @@ | ||
outputArguments: ArgumentOptions[]; | ||
}): void; | ||
}): UAMethod; | ||
@@ -749,0 +760,0 @@ toNodeset2XML(): string; |
@@ -72,5 +72,2 @@ "use strict"; | ||
*/ | ||
AddressSpace.prototype.addMethod = function(parentObject,options) { | ||
return this._resolveRequestedNamespace(options).addMethod(parentObject,options); | ||
}; | ||
Namespace.prototype.addMethod = function (parentObject, options) { | ||
@@ -160,3 +157,6 @@ const self = this; | ||
}; | ||
AddressSpace.prototype.addMethod = function(parentObject,options) { | ||
return this._resolveRequestedNamespace(options).addMethod(parentObject,options); | ||
}; | ||
}; |
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
1986474
32097