node-opcua-generator 2.66.0 → 2.67.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.
@@ -15,11 +15,11 @@ const path = require("path");
15
15
  function normalize_require_file(baseFolder, fullPathToFile) {
16
16
  let localFile = path.relative(baseFolder, fullPathToFile).replace(/\\/g, "/");
17
17
  // append ./ if necessary
18
- if (localFile.substr(0, 1) !== ".") {
18
+ if (localFile.substring(0, 1) !== ".") {
19
19
  localFile = "./" + localFile;
20
20
  }
21
21
  // remove extension
22
- localFile = localFile.substr(0, localFile.length - path.extname(localFile).length);
22
+ localFile = localFile.substring(0, localFile.length - path.extname(localFile).length);
23
23
  return localFile;
24
24
  }
25
25
  exports.normalize_require_file = normalize_require_file;
@@ -1 +1 @@
1
- {"version":3,"file":"normalize_require_file.js","sourceRoot":"","sources":["../../source/utils/normalize_require_file.ts"],"names":[],"mappings":";;;AAAA,6BAA6B;AAC7B,wHAAwH;AACxH;;;;;;;;GAQG;AACH,SAAgB,sBAAsB,CAAC,UAAkB,EAAE,cAAsB;IAC7E,IAAI,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAC9E,yBAAyB;IACzB,IAAI,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,GAAG,EAAE;QAChC,SAAS,GAAG,IAAI,GAAG,SAAS,CAAC;KAChC;IACD,mBAAmB;IACnB,SAAS,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,SAAS,CAAC,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACnF,OAAO,SAAS,CAAC;AACrB,CAAC;AATD,wDASC"}
1
+ {"version":3,"file":"normalize_require_file.js","sourceRoot":"","sources":["../../source/utils/normalize_require_file.ts"],"names":[],"mappings":";;;AAAA,6BAA6B;AAC7B,wHAAwH;AACxH;;;;;;;;GAQG;AACH,SAAgB,sBAAsB,CAAC,UAAkB,EAAE,cAAsB;IAC7E,IAAI,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAC9E,yBAAyB;IACzB,IAAI,SAAS,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,GAAG,EAAE;QACnC,SAAS,GAAG,IAAI,GAAG,SAAS,CAAC;KAChC;IACD,mBAAmB;IACnB,SAAS,GAAG,SAAS,CAAC,SAAS,CAAC,CAAC,EAAE,SAAS,CAAC,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACtF,OAAO,SAAS,CAAC;AACrB,CAAC;AATD,wDASC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-opcua-generator",
3
- "version": "2.66.0",
3
+ "version": "2.67.0",
4
4
  "description": "pure nodejs OPCUA SDK - module -generator",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -14,28 +14,28 @@
14
14
  "dependencies": {
15
15
  "chalk": "4.1.2",
16
16
  "node-opcua-assert": "2.66.0",
17
- "node-opcua-basic-types": "2.66.0",
18
- "node-opcua-buffer-utils": "2.66.0",
19
- "node-opcua-constants": "2.66.0",
20
- "node-opcua-data-model": "2.66.0",
21
- "node-opcua-data-value": "2.66.0",
22
- "node-opcua-date-time": "2.66.0",
23
- "node-opcua-debug": "2.66.0",
24
- "node-opcua-enum": "2.66.0",
25
- "node-opcua-factory": "2.66.0",
17
+ "node-opcua-basic-types": "2.67.0",
18
+ "node-opcua-buffer-utils": "2.67.0",
19
+ "node-opcua-constants": "2.67.0",
20
+ "node-opcua-data-model": "2.67.0",
21
+ "node-opcua-data-value": "2.67.0",
22
+ "node-opcua-date-time": "2.67.0",
23
+ "node-opcua-debug": "2.67.0",
24
+ "node-opcua-enum": "2.67.0",
25
+ "node-opcua-factory": "2.67.0",
26
26
  "node-opcua-guid": "2.66.0",
27
- "node-opcua-nodeid": "2.66.0",
28
- "node-opcua-numeric-range": "2.66.0",
29
- "node-opcua-schemas": "2.66.0",
30
- "node-opcua-status-code": "2.66.0",
31
- "node-opcua-utils": "2.66.0",
32
- "node-opcua-variant": "2.66.0",
33
- "node-opcua-xml2json": "2.66.0"
27
+ "node-opcua-nodeid": "2.67.0",
28
+ "node-opcua-numeric-range": "2.67.0",
29
+ "node-opcua-schemas": "2.67.0",
30
+ "node-opcua-status-code": "2.67.0",
31
+ "node-opcua-utils": "2.67.0",
32
+ "node-opcua-variant": "2.67.0",
33
+ "node-opcua-xml2json": "2.67.0"
34
34
  },
35
35
  "devDependencies": {
36
- "node-opcua-binary-stream": "2.66.0",
37
- "node-opcua-extension-object": "2.66.0",
38
- "node-opcua-packet-analyzer": "2.66.0",
36
+ "node-opcua-binary-stream": "2.67.0",
37
+ "node-opcua-extension-object": "2.67.0",
38
+ "node-opcua-packet-analyzer": "2.67.0",
39
39
  "prettier": "^2.6.1",
40
40
  "should": "^13.2.3",
41
41
  "source-map-support": "^0.5.21",
@@ -56,5 +56,5 @@
56
56
  "internet of things"
57
57
  ],
58
58
  "homepage": "http://node-opcua.github.io/",
59
- "gitHead": "97f47e2e242a1fd737495fd64cb65e8fb7a9964b"
59
+ "gitHead": "74c2fd7d4ce3eb48d25a911258bf90a64218ea0e"
60
60
  }
@@ -12,10 +12,10 @@ import * as path from "path";
12
12
  export function normalize_require_file(baseFolder: string, fullPathToFile: string): string {
13
13
  let localFile = path.relative(baseFolder, fullPathToFile).replace(/\\/g, "/");
14
14
  // append ./ if necessary
15
- if (localFile.substr(0, 1) !== ".") {
15
+ if (localFile.substring(0, 1) !== ".") {
16
16
  localFile = "./" + localFile;
17
17
  }
18
18
  // remove extension
19
- localFile = localFile.substr(0, localFile.length - path.extname(localFile).length);
19
+ localFile = localFile.substring(0, localFile.length - path.extname(localFile).length);
20
20
  return localFile;
21
21
  }