asherah 1.3.14 → 1.3.16

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/binding.gyp CHANGED
@@ -15,7 +15,7 @@
15
15
  '-O3'
16
16
  ],
17
17
  },
18
- 'defines': [ 'NAPI_CPP_EXCEPTIONS', 'NODE_API_SWALLOW_UNTHROWABLE_EXCEPTIONS' ],
18
+ 'defines': [ 'NAPI_CPP_EXCEPTIONS', 'NODE_API_SWALLOW_UNTHROWABLE_EXCEPTIONS', 'NODE_API_NO_EXTERNAL_BUFFERS_ALLOWED', 'NODE_ADDON_API_DISABLE_DEPRECATED' ],
19
19
  'sources': [
20
20
  'lib/libasherah.h',
21
21
  'src/asherah.cc',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asherah",
3
- "version": "1.3.14",
3
+ "version": "1.3.16",
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,8 @@
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>
7
6
  #include <napi.h>
8
7
 
9
8
  size_t max_stack_alloc_size = 2048;
@@ -1,9 +1,8 @@
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>
7
6
  #include <napi.h>
8
7
 
9
8
  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