@openziti/ziti-sdk-nodejs 0.19.0 → 0.20.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.
@@ -136,7 +136,7 @@ jobs:
136
136
 
137
137
  - name: debug build failure
138
138
  if: always() && steps.buildSDK.outcome == 'failure'
139
- uses: actions/upload-artifact@v3
139
+ uses: actions/upload-artifact@v4
140
140
  with:
141
141
  name: build-logs-${{ matrix.config.target }}-${{ matrix.config.arch }}
142
142
  path: |
@@ -158,7 +158,7 @@ jobs:
158
158
  path: './vcpkg/packages'
159
159
 
160
160
  - name: upload artifacts
161
- uses: actions/upload-artifact@v3
161
+ uses: actions/upload-artifact@v4
162
162
  with:
163
163
  name: ziti_nodejs_${{ matrix.config.target }}_${{ matrix.config.arch }}_nodev${{ matrix.node_ver }}
164
164
  path: |
package/SECURITY.md CHANGED
@@ -1,12 +1,3 @@
1
1
  # Security Policy
2
2
 
3
- ## Supported Versions
4
-
5
- Until v1.0.0 or higher is reached, only the most recent version is supported. After v1.0.0 a new version support statement will be released.
6
-
7
- ## Reporting a Vulnerability
8
-
9
- If you have an issue that is not a sensitive security issue, please submit it to the GitHub issue tracker on this repository
10
- or if you're not sure what repository to submit it under, use the [main OpenZiti/ziti repository](https://github.com/openziti/ziti/issues).
11
-
12
- If you have a sensitive security issue or are unsure if it is sensitive, please email it to: security@openziti.org
3
+ Please refer to the [openziti-security repository](https://github.com/openziti/openziti-security) for details of the security policies and processes for this repository.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openziti/ziti-sdk-nodejs",
3
3
  "description": "A NodeJS-based SDK for delivering secure applications over a Ziti Network",
4
- "version": "0.19.0",
4
+ "version": "0.20.0",
5
5
  "main": "./lib/ziti",
6
6
  "scripts": {
7
7
  "build": "npm run build:configure && npm run build:make",
@@ -46,15 +46,15 @@
46
46
  "url": "http://openziti.io"
47
47
  },
48
48
  "devDependencies": {
49
- "aws-sdk": "^2.1473.0",
49
+ "aws-sdk": "^2.1692.0",
50
50
  "docdash": "^1.2.0",
51
- "jsdoc": "^4.0.2",
51
+ "jsdoc": "^4.0.4",
52
52
  "jsdoc-to-markdown": "^7.1.1",
53
53
  "run-script-os": "^1.1.6"
54
54
  },
55
55
  "dependencies": {
56
56
  "@mapbox/node-pre-gyp": "^1.0.11",
57
57
  "bindings": "^1.5.0",
58
- "cmake-js": "^7.2.1"
58
+ "cmake-js": "^7.3.0"
59
59
  }
60
60
  }
package/src/utils.h CHANGED
@@ -70,7 +70,7 @@ extern FILE *ziti_nodejs_debug_out;
70
70
  if (level <= ziti_nodejs_debug_level) {\
71
71
  long elapsed = get_nodejs_elapsed();\
72
72
  fprintf(ziti_nodejs_debug_out, "[%9ld.%03ld] " #level "\tziti-sdk-nodejs/%s:%d %s(): " fmt "\n",\
73
- elapsed/1000, elapsed%1000, __FILENAME_NODEJS__, __LINE__, __func__, ##__VA_ARGS__);\
73
+ (long int)(elapsed/1000), (long int)(elapsed%1000), __FILENAME_NODEJS__, __LINE__, __func__, ##__VA_ARGS__);\
74
74
  }\
75
75
  } while(0)
76
76
  #endif
package/src/ziti_listen.c CHANGED
@@ -75,7 +75,7 @@ static void CallJs_on_listen_client_data(napi_env env, napi_value js_cb, void* c
75
75
  if (rc != napi_ok) {
76
76
  napi_throw_error(env, "EINVAL", "failure to set named property status");
77
77
  }
78
- ZITI_NODEJS_LOG(DEBUG, "js_arb_data: %lld", item->js_arb_data);
78
+ ZITI_NODEJS_LOG(DEBUG, "js_arb_data: %lld", (long long int)item->js_arb_data);
79
79
  } else {
80
80
  rc = napi_set_named_property(env, js_client_item, "js_arb_data", undefined);
81
81
  }
@@ -228,7 +228,7 @@ static void CallJs_on_listen_client_connect(napi_env env, napi_value js_cb, void
228
228
  if (rc != napi_ok) {
229
229
  napi_throw_error(env, "EINVAL", "failure to set named property status");
230
230
  }
231
- ZITI_NODEJS_LOG(DEBUG, "js_arb_data: %lld", item->js_arb_data);
231
+ ZITI_NODEJS_LOG(DEBUG, "js_arb_data: %lld", (long long int)item->js_arb_data);
232
232
  } else {
233
233
  rc = napi_set_named_property(env, js_client_item, "js_arb_data", undefined);
234
234
  }
@@ -303,7 +303,7 @@ static void CallJs_on_listen(napi_env env, napi_value js_cb, void* context, void
303
303
  if (env != NULL) {
304
304
  napi_value undefined, js_rc;
305
305
 
306
- ZITI_NODEJS_LOG(INFO, "CallJs_on_listen: data: %lld", (int64_t)data);
306
+ ZITI_NODEJS_LOG(INFO, "CallJs_on_listen: data: %lld", (long long)data);
307
307
 
308
308
  // Retrieve the rc created by the worker thread.
309
309
  int64_t rc = (int64_t)data;
@@ -401,7 +401,7 @@ static void CallJs_on_listen_client(napi_env env, napi_value js_cb, void* contex
401
401
  if (rc != napi_ok) {
402
402
  napi_throw_error(env, "EINVAL", "failure to set named property status");
403
403
  }
404
- ZITI_NODEJS_LOG(DEBUG, "js_arb_data: %lld", item->js_arb_data);
404
+ ZITI_NODEJS_LOG(DEBUG, "js_arb_data: %lld", (long long)item->js_arb_data);
405
405
  } else {
406
406
  rc = napi_set_named_property(env, js_client_item, "js_arb_data", undefined);
407
407
  }
@@ -592,7 +592,7 @@ napi_value _ziti_listen(napi_env env, const napi_callback_info info) {
592
592
  napi_throw_error(env, NULL, "Failed to get js_arb_data");
593
593
  }
594
594
  addon_data->js_arb_data = js_arb_data;
595
- ZITI_NODEJS_LOG(DEBUG, "js_arb_data: %lld", js_arb_data);
595
+ ZITI_NODEJS_LOG(DEBUG, "js_arb_data: %lld", (long long)js_arb_data);
596
596
 
597
597
  // Obtain ptr to JS 'on_listen' callback function
598
598
  napi_value js_on_listen = args[2];
@@ -42,7 +42,7 @@ napi_value _ziti_set_log_level(napi_env env, const napi_callback_info info) {
42
42
  napi_throw_error(env, NULL, "Failed to get logLevel");
43
43
  }
44
44
 
45
- ZITI_NODEJS_LOG(DEBUG, "js_log_level: %lld", js_log_level);
45
+ ZITI_NODEJS_LOG(DEBUG, "js_log_level: %lld", (long long)js_log_level);
46
46
 
47
47
  ziti_nodejs_debug_level = js_log_level;
48
48
  ziti_log_set_level(js_log_level, NULL);