emnapi 0.39.0 → 0.40.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.
@@ -98,6 +98,24 @@ NAPI_EXTERN napi_status NAPI_CDECL napi_create_string_utf16(napi_env env,
98
98
  const char16_t* str,
99
99
  size_t length,
100
100
  napi_value* result);
101
+ #ifdef NAPI_EXPERIMENTAL
102
+ NAPI_EXTERN napi_status NAPI_CDECL
103
+ node_api_create_external_string_latin1(napi_env env,
104
+ char* str,
105
+ size_t length,
106
+ napi_finalize finalize_callback,
107
+ void* finalize_hint,
108
+ napi_value* result,
109
+ bool* copied);
110
+ NAPI_EXTERN napi_status NAPI_CDECL
111
+ node_api_create_external_string_utf16(napi_env env,
112
+ char16_t* str,
113
+ size_t length,
114
+ napi_finalize finalize_callback,
115
+ void* finalize_hint,
116
+ napi_value* result,
117
+ bool* copied);
118
+ #endif // NAPI_EXPERIMENTAL
101
119
  NAPI_EXTERN napi_status NAPI_CDECL napi_create_symbol(napi_env env,
102
120
  napi_value description,
103
121
  napi_value* result);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "emnapi",
3
- "version": "0.39.0",
3
+ "version": "0.40.0",
4
4
  "description": "Node-API implementation for Emscripten",
5
5
  "main": "index.js",
6
6
  "peerDependencies": {
@@ -11,9 +11,6 @@
11
11
  "optional": true
12
12
  }
13
13
  },
14
- "devDependencies": {
15
- "ts-macros": "2.0.1"
16
- },
17
14
  "scripts": {
18
15
  "build": "node ./script/build.js"
19
16
  },