asherah 1.3.14 → 1.3.15

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asherah",
3
- "version": "1.3.14",
3
+ "version": "1.3.15",
4
4
  "description": "Asherah envelope encryption and key rotation library",
5
5
  "exports": {
6
6
  "node-addons": "./dist/asherah.node"
@@ -30,6 +30,7 @@
30
30
  "src/cobhan_napi_interop.cc",
31
31
  "src/asherah.d.ts",
32
32
  "scripts/download-libraries.sh",
33
+ "scripts/build.sh",
33
34
  "SHA256SUMS",
34
35
  "SHA256SUMS-darwin",
35
36
  ".asherah-version"
@@ -0,0 +1,3 @@
1
+ #!/bin/bash
2
+
3
+ node-gyp configure && node-gyp build && mkdir -p dist/ && cp build/Release/asherah.node dist/asherah.node && cp src/asherah.d.ts dist/asherah.d.ts
package/src/asherah.cc CHANGED
@@ -1,9 +1,10 @@
1
1
  #include "../lib/libasherah.h"
2
- #include <iostream>
3
- #define NODE_ADDON_API_DISABLE_DEPRECATED
4
2
  #include "cobhan_napi_interop.h"
5
3
  #include "hints.h"
6
4
  #include "logging.h"
5
+ #include <iostream>
6
+ #define NODE_ADDON_API_DISABLE_DEPRECATED
7
+ #define NODE_API_NO_EXTERNAL_BUFFERS_ALLOWED
7
8
  #include <napi.h>
8
9
 
9
10
  size_t max_stack_alloc_size = 2048;
@@ -1,9 +1,10 @@
1
1
  #ifndef COBHAN_NAPI_INTEROP_H
2
2
  #define COBHAN_NAPI_INTEROP_H
3
- #include <string>
4
- #define NODE_ADDON_API_DISABLE_DEPRECATED
5
3
  #include "hints.h"
6
4
  #include "logging.h"
5
+ #include <string>
6
+ #define NODE_ADDON_API_DISABLE_DEPRECATED
7
+ #define NODE_API_NO_EXTERNAL_BUFFERS_ALLOWED
7
8
  #include <napi.h>
8
9
 
9
10
  extern size_t est_intermediate_key_overhead;
package/src/logging.h CHANGED
@@ -3,6 +3,7 @@
3
3
  #include "hints.h"
4
4
  #include <cstdint>
5
5
  #include <string>
6
+ #include <iostream>
6
7
 
7
8
  extern int32_t verbose_flag;
8
9