node-opcua-address-space 2.116.0 → 2.118.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/source/loader/generateAddressSpaceRaw.js +8 -4
  2. package/dist/source/loader/generateAddressSpaceRaw.js.map +1 -1
  3. package/dist/source/loader/load_nodeset2.js +2 -2
  4. package/dist/source/loader/load_nodeset2.js.map +1 -1
  5. package/dist/source/pseudo_session.js +12 -26
  6. package/dist/source/pseudo_session.js.map +1 -1
  7. package/dist/src/address_space.js +4 -27
  8. package/dist/src/address_space.js.map +1 -1
  9. package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.js +2 -25
  10. package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.js.map +1 -1
  11. package/dist/src/base_node_impl.js +2 -25
  12. package/dist/src/base_node_impl.js.map +1 -1
  13. package/dist/src/namespace_impl.js +3 -26
  14. package/dist/src/namespace_impl.js.map +1 -1
  15. package/dist/src/nodeset_tools/construct_namespace_dependency.d.ts +27 -3
  16. package/dist/src/nodeset_tools/construct_namespace_dependency.js +210 -81
  17. package/dist/src/nodeset_tools/construct_namespace_dependency.js.map +1 -1
  18. package/dist/src/nodeset_tools/nodeset_to_xml.js +18 -49
  19. package/dist/src/nodeset_tools/nodeset_to_xml.js.map +1 -1
  20. package/dist/src/reference_impl.js +2 -25
  21. package/dist/src/reference_impl.js.map +1 -1
  22. package/dist/src/ua_data_type_impl.d.ts +2 -3
  23. package/dist/src/ua_data_type_impl.js +6 -29
  24. package/dist/src/ua_data_type_impl.js.map +1 -1
  25. package/dist/src/ua_object_type_impl.d.ts +2 -3
  26. package/dist/src/ua_object_type_impl.js +4 -28
  27. package/dist/src/ua_object_type_impl.js.map +1 -1
  28. package/dist/src/ua_reference_type_impl.d.ts +2 -3
  29. package/dist/src/ua_reference_type_impl.js +6 -29
  30. package/dist/src/ua_reference_type_impl.js.map +1 -1
  31. package/dist/src/ua_variable_impl.js +3 -26
  32. package/dist/src/ua_variable_impl.js.map +1 -1
  33. package/dist/src/ua_variable_type_impl.d.ts +2 -3
  34. package/dist/src/ua_variable_type_impl.js +5 -28
  35. package/dist/src/ua_variable_type_impl.js.map +1 -1
  36. package/dist/tsconfig_common.tsbuildinfo +1 -1
  37. package/distHelpers/get_address_space_fixture.js +16 -36
  38. package/distHelpers/get_address_space_fixture.js.map +1 -1
  39. package/distNodeJS/generate_address_space.js +5 -25
  40. package/distNodeJS/generate_address_space.js.map +1 -1
  41. package/package.json +40 -40
  42. package/source/loader/generateAddressSpaceRaw.ts +10 -4
  43. package/source/loader/load_nodeset2.ts +2 -2
  44. package/source/pseudo_session.ts +8 -2
  45. package/source_nodejs/generate_address_space.ts +1 -1
  46. package/src/address_space.ts +2 -2
  47. package/src/alarms_and_conditions/ua_off_normal_alarm_impl.ts +2 -4
  48. package/src/base_node_impl.ts +2 -2
  49. package/src/namespace_impl.ts +5 -7
  50. package/src/nodeset_tools/construct_namespace_dependency.ts +232 -91
  51. package/src/nodeset_tools/nodeset_to_xml.ts +21 -30
  52. package/src/reference_impl.ts +2 -2
  53. package/src/ua_data_type_impl.ts +14 -15
  54. package/src/ua_object_type_impl.ts +6 -6
  55. package/src/ua_reference_type_impl.ts +4 -4
  56. package/src/ua_variable_impl.ts +4 -6
  57. package/src/ua_variable_type_impl.ts +3 -3
@@ -14,7 +14,7 @@ import { DataType } from "node-opcua-variant";
14
14
 
15
15
  import { SessionContext, UAReferenceType as UAReferenceTypePublic } from "../source";
16
16
  import { BaseNodeImpl, InternalBaseNodeOptions } from "./base_node_impl";
17
- import * as tools from "./tool_isSubtypeOf";
17
+ import { construct_isSubtypeOf, construct_slow_isSubtypeOf } from "./tool_isSubtypeOf";
18
18
  import { get_subtypeOf, get_subtypeOfObj } from "./tool_isSubtypeOf";
19
19
  import { ReferenceImpl } from "./reference_impl";
20
20
  import { BaseNode_getCache } from "./base_node_private";
@@ -98,15 +98,15 @@ export class UAReferenceTypeImpl extends BaseNodeImpl implements UAReferenceType
98
98
  /**
99
99
  * returns true if self is a super type of baseType
100
100
  */
101
- public isSubtypeOf = tools.construct_isSubtypeOf<UAReferenceType>(UAReferenceTypeImpl);
101
+ public isSubtypeOf = construct_isSubtypeOf<UAReferenceType>(UAReferenceTypeImpl);
102
102
 
103
103
  /** @deprecated - use `isSubtypeOf` instead*/
104
- public isSupertypeOf = tools.construct_isSubtypeOf<UAReferenceType>(UAReferenceTypeImpl);
104
+ public isSupertypeOf = construct_isSubtypeOf<UAReferenceType>(UAReferenceTypeImpl);
105
105
 
106
106
  /**
107
107
  * @private
108
108
  */
109
- public _slow_isSubtypeOf = tools.construct_slow_isSubtypeOf<UAReferenceType>(UAReferenceTypeImpl);
109
+ public _slow_isSubtypeOf = construct_slow_isSubtypeOf<UAReferenceType>(UAReferenceTypeImpl);
110
110
 
111
111
  constructor(options: UAReferenceTypeOptions) {
112
112
  super(options);
@@ -46,7 +46,7 @@ import {
46
46
  ReadRawModifiedDetails,
47
47
  WriteValueOptions
48
48
  } from "node-opcua-types";
49
- import * as utils from "node-opcua-utils";
49
+ import { isNullOrUndefined } from "node-opcua-utils";
50
50
  import {
51
51
  Variant,
52
52
  VariantLike,
@@ -58,7 +58,6 @@ import {
58
58
  } from "node-opcua-variant";
59
59
  import { StatusCodeCallback } from "node-opcua-status-code";
60
60
  import {
61
- IAddressSpace,
62
61
  BindVariableOptions,
63
62
  IVariableHistorian,
64
63
  TimestampGetFunc,
@@ -94,7 +93,7 @@ import {
94
93
  } from "./ua_variable_impl_ext_obj";
95
94
  import { adjustDataValueStatusCode } from "./data_access/adjust_datavalue_status_code";
96
95
  import { _getBasicDataType } from "./get_basic_datatype";
97
- import { validateDataTypeCorrectness} from "./validate_data_type_correctness";
96
+ import { validateDataTypeCorrectness } from "./validate_data_type_correctness";
98
97
 
99
98
  const debugLog = make_debugLog(__filename);
100
99
  const warningLog = make_warningLog(__filename);
@@ -102,7 +101,7 @@ const doDebug = checkDebugFlag(__filename);
102
101
  const errorLog = make_errorLog(__filename);
103
102
 
104
103
  export function adjust_accessLevel(accessLevel: string | number | null): AccessLevelFlag {
105
- accessLevel = utils.isNullOrUndefined(accessLevel) ? "CurrentRead | CurrentWrite" : accessLevel;
104
+ accessLevel = isNullOrUndefined(accessLevel) ? "CurrentRead | CurrentWrite" : accessLevel;
106
105
  accessLevel = makeAccessLevelFlag(accessLevel);
107
106
  assert(isFinite(accessLevel));
108
107
  return accessLevel;
@@ -150,7 +149,6 @@ function is_Variant_or_StatusCode(v: any): boolean {
150
149
  return is_Variant(v) || is_StatusCode(v);
151
150
  }
152
151
 
153
-
154
152
  function default_func(this: UAVariable, dataValue1: DataValue, callback1: CallbackT<StatusCode>) {
155
153
  return _default_writable_timestamped_set_func.call(this, dataValue1, callback1);
156
154
  }
@@ -237,7 +235,7 @@ export class UAVariableImpl extends BaseNodeImpl implements UAVariable {
237
235
  get typeDefinitionObj(): UAVariableType {
238
236
  // istanbul ignore next
239
237
  if (super.typeDefinitionObj && super.typeDefinitionObj.nodeClass !== NodeClass.VariableType) {
240
- // this could happen in faulty external nodeset and has been seen once
238
+ // this could happen in faulty external nodeset and has been seen once
241
239
  // in an nano server
242
240
  warningLog(super.typeDefinitionObj.toString());
243
241
  return this.addressSpace.findVariableType("BaseVariableType")!;
@@ -31,7 +31,7 @@ import { initialize_properties_and_components } from "./_instantiate_helpers";
31
31
  import { AddressSpacePrivate } from "./address_space_private";
32
32
  import { BaseNodeImpl, InternalBaseNodeOptions } from "./base_node_impl";
33
33
  import { _clone_hierarchical_references, ToStringBuilder, UAVariableType_toString } from "./base_node_private";
34
- import * as tools from "./tool_isSubtypeOf";
34
+ import { construct_isSubtypeOf } from "./tool_isSubtypeOf";
35
35
  import { get_subtypeOfObj } from "./tool_isSubtypeOf";
36
36
  import { get_subtypeOf } from "./tool_isSubtypeOf";
37
37
  import { checkValueRankCompatibility } from "./check_value_rank_compatibility";
@@ -112,10 +112,10 @@ export class UAVariableTypeImpl extends BaseNodeImpl implements UAVariableType {
112
112
  return get_subtypeOfObj.call(this) as UAVariableType;
113
113
  }
114
114
 
115
- public isSubtypeOf = tools.construct_isSubtypeOf<UAVariableType>(UAVariableTypeImpl);
115
+ public isSubtypeOf = construct_isSubtypeOf<UAVariableType>(UAVariableTypeImpl);
116
116
 
117
117
  /** @deprecated - use isSubtypeOf instead */
118
- public isSupertypeOf = deprecate(tools.construct_isSubtypeOf<UAVariableType>(UAVariableTypeImpl));
118
+ public isSupertypeOf = deprecate(construct_isSubtypeOf<UAVariableType>(UAVariableTypeImpl));
119
119
 
120
120
  public readonly isAbstract: boolean;
121
121
  public dataType: NodeId;