@ecrindigital/facetpack-native 0.1.1 → 0.1.2
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/facetpack-native.darwin-arm64.node +0 -0
- package/index.d.ts +52 -0
- package/index.js +109 -105
- package/package.json +5 -5
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -7,11 +7,55 @@ export declare class FacetPack {
|
|
|
7
7
|
resolve(directory: string, specifier: string, options?: ResolverOptions | undefined | null): ResolveResult
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
+
export declare function analyzeBatchSync(modules: Array<ModuleInput>): Array<ModuleAnalysis>
|
|
11
|
+
|
|
12
|
+
export declare function analyzeSync(filename: string, sourceText: string): ModuleAnalysis
|
|
13
|
+
|
|
14
|
+
export interface ExportInfo {
|
|
15
|
+
name: string
|
|
16
|
+
isDefault: boolean
|
|
17
|
+
isReexport: boolean
|
|
18
|
+
source?: string
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface ImportInfo {
|
|
22
|
+
source: string
|
|
23
|
+
specifiers: Array<string>
|
|
24
|
+
isSideEffect: boolean
|
|
25
|
+
}
|
|
26
|
+
|
|
10
27
|
export declare const enum JsxRuntime {
|
|
11
28
|
Automatic = 'Automatic',
|
|
12
29
|
Classic = 'Classic'
|
|
13
30
|
}
|
|
14
31
|
|
|
32
|
+
export interface MinifyOptions {
|
|
33
|
+
compress?: boolean
|
|
34
|
+
mangle?: boolean
|
|
35
|
+
keepFnames?: boolean
|
|
36
|
+
dropConsole?: boolean
|
|
37
|
+
dropDebugger?: boolean
|
|
38
|
+
sourcemap?: boolean
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface MinifyResult {
|
|
42
|
+
code: string
|
|
43
|
+
map?: string
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export declare function minifySync(code: string, filename: string, options?: MinifyOptions | undefined | null): MinifyResult
|
|
47
|
+
|
|
48
|
+
export interface ModuleAnalysis {
|
|
49
|
+
exports: Array<ExportInfo>
|
|
50
|
+
imports: Array<ImportInfo>
|
|
51
|
+
hasSideEffects: boolean
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface ModuleInput {
|
|
55
|
+
path: string
|
|
56
|
+
code: string
|
|
57
|
+
}
|
|
58
|
+
|
|
15
59
|
export interface ParseOptions {
|
|
16
60
|
sourceType?: SourceType
|
|
17
61
|
preserveParens?: boolean
|
|
@@ -40,6 +84,14 @@ export interface ResolverOptions {
|
|
|
40
84
|
|
|
41
85
|
export declare function resolveSync(directory: string, specifier: string, options?: ResolverOptions | undefined | null): ResolveResult
|
|
42
86
|
|
|
87
|
+
export interface ShakeResult {
|
|
88
|
+
code: string
|
|
89
|
+
map?: string
|
|
90
|
+
removedExports: Array<string>
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export declare function shakeSync(filename: string, sourceText: string, usedExports: Array<string>): ShakeResult
|
|
94
|
+
|
|
43
95
|
export declare const enum SourceType {
|
|
44
96
|
Script = 'Script',
|
|
45
97
|
Module = 'Module',
|
package/index.js
CHANGED
|
@@ -75,10 +75,10 @@ function requireNative() {
|
|
|
75
75
|
loadErrors.push(e)
|
|
76
76
|
}
|
|
77
77
|
try {
|
|
78
|
-
const binding = require('facetpack-native-android-arm64')
|
|
79
|
-
const bindingPackageVersion = require('facetpack-native-android-arm64/package.json').version
|
|
80
|
-
if (bindingPackageVersion !== '1.
|
|
81
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
78
|
+
const binding = require('@ecrindigital/facetpack-native-android-arm64')
|
|
79
|
+
const bindingPackageVersion = require('@ecrindigital/facetpack-native-android-arm64/package.json').version
|
|
80
|
+
if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
81
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
82
82
|
}
|
|
83
83
|
return binding
|
|
84
84
|
} catch (e) {
|
|
@@ -91,10 +91,10 @@ function requireNative() {
|
|
|
91
91
|
loadErrors.push(e)
|
|
92
92
|
}
|
|
93
93
|
try {
|
|
94
|
-
const binding = require('facetpack-native-android-arm-eabi')
|
|
95
|
-
const bindingPackageVersion = require('facetpack-native-android-arm-eabi/package.json').version
|
|
96
|
-
if (bindingPackageVersion !== '1.
|
|
97
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
94
|
+
const binding = require('@ecrindigital/facetpack-native-android-arm-eabi')
|
|
95
|
+
const bindingPackageVersion = require('@ecrindigital/facetpack-native-android-arm-eabi/package.json').version
|
|
96
|
+
if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
97
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
98
98
|
}
|
|
99
99
|
return binding
|
|
100
100
|
} catch (e) {
|
|
@@ -112,10 +112,10 @@ function requireNative() {
|
|
|
112
112
|
loadErrors.push(e)
|
|
113
113
|
}
|
|
114
114
|
try {
|
|
115
|
-
const binding = require('facetpack-native-win32-x64-gnu')
|
|
116
|
-
const bindingPackageVersion = require('facetpack-native-win32-x64-gnu/package.json').version
|
|
117
|
-
if (bindingPackageVersion !== '1.
|
|
118
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
115
|
+
const binding = require('@ecrindigital/facetpack-native-win32-x64-gnu')
|
|
116
|
+
const bindingPackageVersion = require('@ecrindigital/facetpack-native-win32-x64-gnu/package.json').version
|
|
117
|
+
if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
118
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
119
119
|
}
|
|
120
120
|
return binding
|
|
121
121
|
} catch (e) {
|
|
@@ -128,10 +128,10 @@ function requireNative() {
|
|
|
128
128
|
loadErrors.push(e)
|
|
129
129
|
}
|
|
130
130
|
try {
|
|
131
|
-
const binding = require('facetpack-native-win32-x64-msvc')
|
|
132
|
-
const bindingPackageVersion = require('facetpack-native-win32-x64-msvc/package.json').version
|
|
133
|
-
if (bindingPackageVersion !== '1.
|
|
134
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
131
|
+
const binding = require('@ecrindigital/facetpack-native-win32-x64-msvc')
|
|
132
|
+
const bindingPackageVersion = require('@ecrindigital/facetpack-native-win32-x64-msvc/package.json').version
|
|
133
|
+
if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
134
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
135
135
|
}
|
|
136
136
|
return binding
|
|
137
137
|
} catch (e) {
|
|
@@ -145,10 +145,10 @@ function requireNative() {
|
|
|
145
145
|
loadErrors.push(e)
|
|
146
146
|
}
|
|
147
147
|
try {
|
|
148
|
-
const binding = require('facetpack-native-win32-ia32-msvc')
|
|
149
|
-
const bindingPackageVersion = require('facetpack-native-win32-ia32-msvc/package.json').version
|
|
150
|
-
if (bindingPackageVersion !== '1.
|
|
151
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
148
|
+
const binding = require('@ecrindigital/facetpack-native-win32-ia32-msvc')
|
|
149
|
+
const bindingPackageVersion = require('@ecrindigital/facetpack-native-win32-ia32-msvc/package.json').version
|
|
150
|
+
if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
151
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
152
152
|
}
|
|
153
153
|
return binding
|
|
154
154
|
} catch (e) {
|
|
@@ -161,10 +161,10 @@ function requireNative() {
|
|
|
161
161
|
loadErrors.push(e)
|
|
162
162
|
}
|
|
163
163
|
try {
|
|
164
|
-
const binding = require('facetpack-native-win32-arm64-msvc')
|
|
165
|
-
const bindingPackageVersion = require('facetpack-native-win32-arm64-msvc/package.json').version
|
|
166
|
-
if (bindingPackageVersion !== '1.
|
|
167
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
164
|
+
const binding = require('@ecrindigital/facetpack-native-win32-arm64-msvc')
|
|
165
|
+
const bindingPackageVersion = require('@ecrindigital/facetpack-native-win32-arm64-msvc/package.json').version
|
|
166
|
+
if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
167
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
168
168
|
}
|
|
169
169
|
return binding
|
|
170
170
|
} catch (e) {
|
|
@@ -180,10 +180,10 @@ function requireNative() {
|
|
|
180
180
|
loadErrors.push(e)
|
|
181
181
|
}
|
|
182
182
|
try {
|
|
183
|
-
const binding = require('facetpack-native-darwin-universal')
|
|
184
|
-
const bindingPackageVersion = require('facetpack-native-darwin-universal/package.json').version
|
|
185
|
-
if (bindingPackageVersion !== '1.
|
|
186
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
183
|
+
const binding = require('@ecrindigital/facetpack-native-darwin-universal')
|
|
184
|
+
const bindingPackageVersion = require('@ecrindigital/facetpack-native-darwin-universal/package.json').version
|
|
185
|
+
if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
186
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
187
187
|
}
|
|
188
188
|
return binding
|
|
189
189
|
} catch (e) {
|
|
@@ -196,10 +196,10 @@ function requireNative() {
|
|
|
196
196
|
loadErrors.push(e)
|
|
197
197
|
}
|
|
198
198
|
try {
|
|
199
|
-
const binding = require('facetpack-native-darwin-x64')
|
|
200
|
-
const bindingPackageVersion = require('facetpack-native-darwin-x64/package.json').version
|
|
201
|
-
if (bindingPackageVersion !== '1.
|
|
202
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
199
|
+
const binding = require('@ecrindigital/facetpack-native-darwin-x64')
|
|
200
|
+
const bindingPackageVersion = require('@ecrindigital/facetpack-native-darwin-x64/package.json').version
|
|
201
|
+
if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
202
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
203
203
|
}
|
|
204
204
|
return binding
|
|
205
205
|
} catch (e) {
|
|
@@ -212,10 +212,10 @@ function requireNative() {
|
|
|
212
212
|
loadErrors.push(e)
|
|
213
213
|
}
|
|
214
214
|
try {
|
|
215
|
-
const binding = require('facetpack-native-darwin-arm64')
|
|
216
|
-
const bindingPackageVersion = require('facetpack-native-darwin-arm64/package.json').version
|
|
217
|
-
if (bindingPackageVersion !== '1.
|
|
218
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
215
|
+
const binding = require('@ecrindigital/facetpack-native-darwin-arm64')
|
|
216
|
+
const bindingPackageVersion = require('@ecrindigital/facetpack-native-darwin-arm64/package.json').version
|
|
217
|
+
if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
218
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
219
219
|
}
|
|
220
220
|
return binding
|
|
221
221
|
} catch (e) {
|
|
@@ -232,10 +232,10 @@ function requireNative() {
|
|
|
232
232
|
loadErrors.push(e)
|
|
233
233
|
}
|
|
234
234
|
try {
|
|
235
|
-
const binding = require('facetpack-native-freebsd-x64')
|
|
236
|
-
const bindingPackageVersion = require('facetpack-native-freebsd-x64/package.json').version
|
|
237
|
-
if (bindingPackageVersion !== '1.
|
|
238
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
235
|
+
const binding = require('@ecrindigital/facetpack-native-freebsd-x64')
|
|
236
|
+
const bindingPackageVersion = require('@ecrindigital/facetpack-native-freebsd-x64/package.json').version
|
|
237
|
+
if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
238
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
239
239
|
}
|
|
240
240
|
return binding
|
|
241
241
|
} catch (e) {
|
|
@@ -248,10 +248,10 @@ function requireNative() {
|
|
|
248
248
|
loadErrors.push(e)
|
|
249
249
|
}
|
|
250
250
|
try {
|
|
251
|
-
const binding = require('facetpack-native-freebsd-arm64')
|
|
252
|
-
const bindingPackageVersion = require('facetpack-native-freebsd-arm64/package.json').version
|
|
253
|
-
if (bindingPackageVersion !== '1.
|
|
254
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
251
|
+
const binding = require('@ecrindigital/facetpack-native-freebsd-arm64')
|
|
252
|
+
const bindingPackageVersion = require('@ecrindigital/facetpack-native-freebsd-arm64/package.json').version
|
|
253
|
+
if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
254
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
255
255
|
}
|
|
256
256
|
return binding
|
|
257
257
|
} catch (e) {
|
|
@@ -269,10 +269,10 @@ function requireNative() {
|
|
|
269
269
|
loadErrors.push(e)
|
|
270
270
|
}
|
|
271
271
|
try {
|
|
272
|
-
const binding = require('facetpack-native-linux-x64-musl')
|
|
273
|
-
const bindingPackageVersion = require('facetpack-native-linux-x64-musl/package.json').version
|
|
274
|
-
if (bindingPackageVersion !== '1.
|
|
275
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
272
|
+
const binding = require('@ecrindigital/facetpack-native-linux-x64-musl')
|
|
273
|
+
const bindingPackageVersion = require('@ecrindigital/facetpack-native-linux-x64-musl/package.json').version
|
|
274
|
+
if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
275
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
276
276
|
}
|
|
277
277
|
return binding
|
|
278
278
|
} catch (e) {
|
|
@@ -285,10 +285,10 @@ function requireNative() {
|
|
|
285
285
|
loadErrors.push(e)
|
|
286
286
|
}
|
|
287
287
|
try {
|
|
288
|
-
const binding = require('facetpack-native-linux-x64-gnu')
|
|
289
|
-
const bindingPackageVersion = require('facetpack-native-linux-x64-gnu/package.json').version
|
|
290
|
-
if (bindingPackageVersion !== '1.
|
|
291
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
288
|
+
const binding = require('@ecrindigital/facetpack-native-linux-x64-gnu')
|
|
289
|
+
const bindingPackageVersion = require('@ecrindigital/facetpack-native-linux-x64-gnu/package.json').version
|
|
290
|
+
if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
291
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
292
292
|
}
|
|
293
293
|
return binding
|
|
294
294
|
} catch (e) {
|
|
@@ -303,10 +303,10 @@ function requireNative() {
|
|
|
303
303
|
loadErrors.push(e)
|
|
304
304
|
}
|
|
305
305
|
try {
|
|
306
|
-
const binding = require('facetpack-native-linux-arm64-musl')
|
|
307
|
-
const bindingPackageVersion = require('facetpack-native-linux-arm64-musl/package.json').version
|
|
308
|
-
if (bindingPackageVersion !== '1.
|
|
309
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
306
|
+
const binding = require('@ecrindigital/facetpack-native-linux-arm64-musl')
|
|
307
|
+
const bindingPackageVersion = require('@ecrindigital/facetpack-native-linux-arm64-musl/package.json').version
|
|
308
|
+
if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
309
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
310
310
|
}
|
|
311
311
|
return binding
|
|
312
312
|
} catch (e) {
|
|
@@ -319,10 +319,10 @@ function requireNative() {
|
|
|
319
319
|
loadErrors.push(e)
|
|
320
320
|
}
|
|
321
321
|
try {
|
|
322
|
-
const binding = require('facetpack-native-linux-arm64-gnu')
|
|
323
|
-
const bindingPackageVersion = require('facetpack-native-linux-arm64-gnu/package.json').version
|
|
324
|
-
if (bindingPackageVersion !== '1.
|
|
325
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
322
|
+
const binding = require('@ecrindigital/facetpack-native-linux-arm64-gnu')
|
|
323
|
+
const bindingPackageVersion = require('@ecrindigital/facetpack-native-linux-arm64-gnu/package.json').version
|
|
324
|
+
if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
325
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
326
326
|
}
|
|
327
327
|
return binding
|
|
328
328
|
} catch (e) {
|
|
@@ -337,10 +337,10 @@ function requireNative() {
|
|
|
337
337
|
loadErrors.push(e)
|
|
338
338
|
}
|
|
339
339
|
try {
|
|
340
|
-
const binding = require('facetpack-native-linux-arm-musleabihf')
|
|
341
|
-
const bindingPackageVersion = require('facetpack-native-linux-arm-musleabihf/package.json').version
|
|
342
|
-
if (bindingPackageVersion !== '1.
|
|
343
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
340
|
+
const binding = require('@ecrindigital/facetpack-native-linux-arm-musleabihf')
|
|
341
|
+
const bindingPackageVersion = require('@ecrindigital/facetpack-native-linux-arm-musleabihf/package.json').version
|
|
342
|
+
if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
343
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
344
344
|
}
|
|
345
345
|
return binding
|
|
346
346
|
} catch (e) {
|
|
@@ -353,10 +353,10 @@ function requireNative() {
|
|
|
353
353
|
loadErrors.push(e)
|
|
354
354
|
}
|
|
355
355
|
try {
|
|
356
|
-
const binding = require('facetpack-native-linux-arm-gnueabihf')
|
|
357
|
-
const bindingPackageVersion = require('facetpack-native-linux-arm-gnueabihf/package.json').version
|
|
358
|
-
if (bindingPackageVersion !== '1.
|
|
359
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
356
|
+
const binding = require('@ecrindigital/facetpack-native-linux-arm-gnueabihf')
|
|
357
|
+
const bindingPackageVersion = require('@ecrindigital/facetpack-native-linux-arm-gnueabihf/package.json').version
|
|
358
|
+
if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
359
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
360
360
|
}
|
|
361
361
|
return binding
|
|
362
362
|
} catch (e) {
|
|
@@ -371,10 +371,10 @@ function requireNative() {
|
|
|
371
371
|
loadErrors.push(e)
|
|
372
372
|
}
|
|
373
373
|
try {
|
|
374
|
-
const binding = require('facetpack-native-linux-loong64-musl')
|
|
375
|
-
const bindingPackageVersion = require('facetpack-native-linux-loong64-musl/package.json').version
|
|
376
|
-
if (bindingPackageVersion !== '1.
|
|
377
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
374
|
+
const binding = require('@ecrindigital/facetpack-native-linux-loong64-musl')
|
|
375
|
+
const bindingPackageVersion = require('@ecrindigital/facetpack-native-linux-loong64-musl/package.json').version
|
|
376
|
+
if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
377
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
378
378
|
}
|
|
379
379
|
return binding
|
|
380
380
|
} catch (e) {
|
|
@@ -387,10 +387,10 @@ function requireNative() {
|
|
|
387
387
|
loadErrors.push(e)
|
|
388
388
|
}
|
|
389
389
|
try {
|
|
390
|
-
const binding = require('facetpack-native-linux-loong64-gnu')
|
|
391
|
-
const bindingPackageVersion = require('facetpack-native-linux-loong64-gnu/package.json').version
|
|
392
|
-
if (bindingPackageVersion !== '1.
|
|
393
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
390
|
+
const binding = require('@ecrindigital/facetpack-native-linux-loong64-gnu')
|
|
391
|
+
const bindingPackageVersion = require('@ecrindigital/facetpack-native-linux-loong64-gnu/package.json').version
|
|
392
|
+
if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
393
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
394
394
|
}
|
|
395
395
|
return binding
|
|
396
396
|
} catch (e) {
|
|
@@ -405,10 +405,10 @@ function requireNative() {
|
|
|
405
405
|
loadErrors.push(e)
|
|
406
406
|
}
|
|
407
407
|
try {
|
|
408
|
-
const binding = require('facetpack-native-linux-riscv64-musl')
|
|
409
|
-
const bindingPackageVersion = require('facetpack-native-linux-riscv64-musl/package.json').version
|
|
410
|
-
if (bindingPackageVersion !== '1.
|
|
411
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
408
|
+
const binding = require('@ecrindigital/facetpack-native-linux-riscv64-musl')
|
|
409
|
+
const bindingPackageVersion = require('@ecrindigital/facetpack-native-linux-riscv64-musl/package.json').version
|
|
410
|
+
if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
411
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
412
412
|
}
|
|
413
413
|
return binding
|
|
414
414
|
} catch (e) {
|
|
@@ -421,10 +421,10 @@ function requireNative() {
|
|
|
421
421
|
loadErrors.push(e)
|
|
422
422
|
}
|
|
423
423
|
try {
|
|
424
|
-
const binding = require('facetpack-native-linux-riscv64-gnu')
|
|
425
|
-
const bindingPackageVersion = require('facetpack-native-linux-riscv64-gnu/package.json').version
|
|
426
|
-
if (bindingPackageVersion !== '1.
|
|
427
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
424
|
+
const binding = require('@ecrindigital/facetpack-native-linux-riscv64-gnu')
|
|
425
|
+
const bindingPackageVersion = require('@ecrindigital/facetpack-native-linux-riscv64-gnu/package.json').version
|
|
426
|
+
if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
427
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
428
428
|
}
|
|
429
429
|
return binding
|
|
430
430
|
} catch (e) {
|
|
@@ -438,10 +438,10 @@ function requireNative() {
|
|
|
438
438
|
loadErrors.push(e)
|
|
439
439
|
}
|
|
440
440
|
try {
|
|
441
|
-
const binding = require('facetpack-native-linux-ppc64-gnu')
|
|
442
|
-
const bindingPackageVersion = require('facetpack-native-linux-ppc64-gnu/package.json').version
|
|
443
|
-
if (bindingPackageVersion !== '1.
|
|
444
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
441
|
+
const binding = require('@ecrindigital/facetpack-native-linux-ppc64-gnu')
|
|
442
|
+
const bindingPackageVersion = require('@ecrindigital/facetpack-native-linux-ppc64-gnu/package.json').version
|
|
443
|
+
if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
444
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
445
445
|
}
|
|
446
446
|
return binding
|
|
447
447
|
} catch (e) {
|
|
@@ -454,10 +454,10 @@ function requireNative() {
|
|
|
454
454
|
loadErrors.push(e)
|
|
455
455
|
}
|
|
456
456
|
try {
|
|
457
|
-
const binding = require('facetpack-native-linux-s390x-gnu')
|
|
458
|
-
const bindingPackageVersion = require('facetpack-native-linux-s390x-gnu/package.json').version
|
|
459
|
-
if (bindingPackageVersion !== '1.
|
|
460
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
457
|
+
const binding = require('@ecrindigital/facetpack-native-linux-s390x-gnu')
|
|
458
|
+
const bindingPackageVersion = require('@ecrindigital/facetpack-native-linux-s390x-gnu/package.json').version
|
|
459
|
+
if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
460
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
461
461
|
}
|
|
462
462
|
return binding
|
|
463
463
|
} catch (e) {
|
|
@@ -474,10 +474,10 @@ function requireNative() {
|
|
|
474
474
|
loadErrors.push(e)
|
|
475
475
|
}
|
|
476
476
|
try {
|
|
477
|
-
const binding = require('facetpack-native-openharmony-arm64')
|
|
478
|
-
const bindingPackageVersion = require('facetpack-native-openharmony-arm64/package.json').version
|
|
479
|
-
if (bindingPackageVersion !== '1.
|
|
480
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
477
|
+
const binding = require('@ecrindigital/facetpack-native-openharmony-arm64')
|
|
478
|
+
const bindingPackageVersion = require('@ecrindigital/facetpack-native-openharmony-arm64/package.json').version
|
|
479
|
+
if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
480
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
481
481
|
}
|
|
482
482
|
return binding
|
|
483
483
|
} catch (e) {
|
|
@@ -490,10 +490,10 @@ function requireNative() {
|
|
|
490
490
|
loadErrors.push(e)
|
|
491
491
|
}
|
|
492
492
|
try {
|
|
493
|
-
const binding = require('facetpack-native-openharmony-x64')
|
|
494
|
-
const bindingPackageVersion = require('facetpack-native-openharmony-x64/package.json').version
|
|
495
|
-
if (bindingPackageVersion !== '1.
|
|
496
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
493
|
+
const binding = require('@ecrindigital/facetpack-native-openharmony-x64')
|
|
494
|
+
const bindingPackageVersion = require('@ecrindigital/facetpack-native-openharmony-x64/package.json').version
|
|
495
|
+
if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
496
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
497
497
|
}
|
|
498
498
|
return binding
|
|
499
499
|
} catch (e) {
|
|
@@ -506,10 +506,10 @@ function requireNative() {
|
|
|
506
506
|
loadErrors.push(e)
|
|
507
507
|
}
|
|
508
508
|
try {
|
|
509
|
-
const binding = require('facetpack-native-openharmony-arm')
|
|
510
|
-
const bindingPackageVersion = require('facetpack-native-openharmony-arm/package.json').version
|
|
511
|
-
if (bindingPackageVersion !== '1.
|
|
512
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
509
|
+
const binding = require('@ecrindigital/facetpack-native-openharmony-arm')
|
|
510
|
+
const bindingPackageVersion = require('@ecrindigital/facetpack-native-openharmony-arm/package.json').version
|
|
511
|
+
if (bindingPackageVersion !== '0.1.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
512
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
513
513
|
}
|
|
514
514
|
return binding
|
|
515
515
|
} catch (e) {
|
|
@@ -538,7 +538,7 @@ if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) {
|
|
|
538
538
|
}
|
|
539
539
|
if (!nativeBinding) {
|
|
540
540
|
try {
|
|
541
|
-
wasiBinding = require('facetpack-native-wasm32-wasi')
|
|
541
|
+
wasiBinding = require('@ecrindigital/facetpack-native-wasm32-wasi')
|
|
542
542
|
nativeBinding = wasiBinding
|
|
543
543
|
} catch (err) {
|
|
544
544
|
if (process.env.NAPI_RS_FORCE_WASI) {
|
|
@@ -573,9 +573,13 @@ if (!nativeBinding) {
|
|
|
573
573
|
|
|
574
574
|
module.exports = nativeBinding
|
|
575
575
|
module.exports.FacetPack = nativeBinding.FacetPack
|
|
576
|
+
module.exports.analyzeBatchSync = nativeBinding.analyzeBatchSync
|
|
577
|
+
module.exports.analyzeSync = nativeBinding.analyzeSync
|
|
576
578
|
module.exports.JsxRuntime = nativeBinding.JsxRuntime
|
|
579
|
+
module.exports.minifySync = nativeBinding.minifySync
|
|
577
580
|
module.exports.parseSync = nativeBinding.parseSync
|
|
578
581
|
module.exports.resolveBatchSync = nativeBinding.resolveBatchSync
|
|
579
582
|
module.exports.resolveSync = nativeBinding.resolveSync
|
|
583
|
+
module.exports.shakeSync = nativeBinding.shakeSync
|
|
580
584
|
module.exports.SourceType = nativeBinding.SourceType
|
|
581
585
|
module.exports.transformSync = nativeBinding.transformSync
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ecrindigital/facetpack-native",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Native bindings for Facetpack - OXC-powered transformer and resolver",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -121,9 +121,9 @@
|
|
|
121
121
|
},
|
|
122
122
|
"packageManager": "yarn@4.12.0",
|
|
123
123
|
"optionalDependencies": {
|
|
124
|
-
"@ecrindigital/facetpack-native-win32-x64-msvc": "0.1.
|
|
125
|
-
"@ecrindigital/facetpack-native-darwin-x64": "0.1.
|
|
126
|
-
"@ecrindigital/facetpack-native-linux-x64-gnu": "0.1.
|
|
127
|
-
"@ecrindigital/facetpack-native-darwin-arm64": "0.1.
|
|
124
|
+
"@ecrindigital/facetpack-native-win32-x64-msvc": "0.1.2",
|
|
125
|
+
"@ecrindigital/facetpack-native-darwin-x64": "0.1.2",
|
|
126
|
+
"@ecrindigital/facetpack-native-linux-x64-gnu": "0.1.2",
|
|
127
|
+
"@ecrindigital/facetpack-native-darwin-arm64": "0.1.2"
|
|
128
128
|
}
|
|
129
129
|
}
|