@datafog/node 0.2.0 → 0.3.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.
- package/datafog.darwin-arm64.node +0 -0
- package/datafog.darwin-x64.node +0 -0
- package/datafog.linux-arm64-gnu.node +0 -0
- package/datafog.linux-x64-gnu.node +0 -0
- package/datafog.win32-x64-msvc.node +0 -0
- package/index.d.ts +92 -0
- package/index.js +110 -12
- package/native.js +65 -55
- package/package.json +6 -6
|
Binary file
|
package/datafog.darwin-x64.node
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -138,6 +138,10 @@ export interface PrivacyManagerProviders {
|
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
export declare class PrivacyManager {
|
|
141
|
+
transformStructured(data: JsonDocument, findings: StructuredFindingInput[], config: TransformationConfig, context?: PrivacyContext): Promise<StructuredTransformResult>;
|
|
142
|
+
scanAndTransformStructured(data: JsonDocument, config: StructuredScanAndTransformConfig, context?: PrivacyContext): Promise<StructuredTransformResult>;
|
|
143
|
+
restoreStructured(data: JsonDocument, context: PrivacyContext): Promise<StructuredRestoreResult>;
|
|
144
|
+
|
|
141
145
|
constructor(provider: KeyProvider | PrivacyManagerProviders, tokenProvider?: TokenProvider);
|
|
142
146
|
transform(
|
|
143
147
|
text: string,
|
|
@@ -152,6 +156,35 @@ export declare class PrivacyManager {
|
|
|
152
156
|
): Promise<TransformResult>;
|
|
153
157
|
restore(text: string, context: PrivacyContext): Promise<RestoreResult>;
|
|
154
158
|
}
|
|
159
|
+
|
|
160
|
+
/** JSON input uses finite numbers; integer values must be JavaScript-safe. */
|
|
161
|
+
export type JsonValue = null | boolean | number | string | JsonValue[] | { [key: string]: JsonValue };
|
|
162
|
+
export type JsonDocument = JsonValue[] | { [key: string]: JsonValue };
|
|
163
|
+
export interface StructuredScanConfig {
|
|
164
|
+
readonly locale?: string;
|
|
165
|
+
readonly discover_person?: boolean;
|
|
166
|
+
readonly mappings?: Readonly<Record<string, "PERSON">>;
|
|
167
|
+
readonly exclude?: readonly string[];
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export interface StructuredScanAndTransformConfig {
|
|
171
|
+
readonly scan?: StructuredScanConfig;
|
|
172
|
+
readonly transform: TransformationConfig;
|
|
173
|
+
}
|
|
174
|
+
export declare function transformStructured(data: JsonDocument, findings: StructuredFindingInput[], config: TransformationConfig): StructuredTransformResult;
|
|
175
|
+
export declare function scanAndTransformStructured(data: JsonDocument, config: StructuredScanAndTransformConfig): StructuredTransformResult;
|
|
176
|
+
|
|
177
|
+
export interface StructuredTransformResult { readonly data: JsonDocument; readonly transformations: StructuredTransformation[]; }
|
|
178
|
+
export interface StructuredRestoreResult { readonly data: JsonDocument; readonly restorations: StructuredRestoration[]; }
|
|
179
|
+
export declare function discoverFields(dataJson: JsonDocument, config?: StructuredScanConfig | undefined): Array<FieldMapping>
|
|
180
|
+
|
|
181
|
+
export interface FieldMapping {
|
|
182
|
+
path: string
|
|
183
|
+
entityType: string
|
|
184
|
+
source: string
|
|
185
|
+
rule: string
|
|
186
|
+
}
|
|
187
|
+
|
|
155
188
|
export interface Finding {
|
|
156
189
|
readonly entityType: EntityType
|
|
157
190
|
readonly matchedText: string
|
|
@@ -180,13 +213,30 @@ export interface KeySelector {
|
|
|
180
213
|
readonly path: string
|
|
181
214
|
}
|
|
182
215
|
|
|
216
|
+
export interface NativeStructuredRestoreResult {
|
|
217
|
+
dataJson: string
|
|
218
|
+
restorations: Array<StructuredRestoration>
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export interface NativeStructuredTransformResult {
|
|
222
|
+
dataJson: string
|
|
223
|
+
transformations: Array<StructuredTransformation>
|
|
224
|
+
}
|
|
225
|
+
|
|
183
226
|
export interface PreparedScanAndTransform {
|
|
184
227
|
readonly findings: Array<Finding>
|
|
185
228
|
readonly selectors: Array<KeySelector>
|
|
186
229
|
}
|
|
187
230
|
|
|
231
|
+
export interface PreparedStructuredScan {
|
|
232
|
+
findings: Array<StructuredFinding>
|
|
233
|
+
selectors: Array<KeySelector>
|
|
234
|
+
}
|
|
235
|
+
|
|
188
236
|
export declare function prepareScanAndTransform(text: string, config: ScanAndTransformConfig): PreparedScanAndTransform
|
|
189
237
|
|
|
238
|
+
export declare function prepareStructuredScanAndTransform(text: string, config: unknown): PreparedStructuredScan
|
|
239
|
+
|
|
190
240
|
export declare function requiredKeySelectors(text: string, findings: FindingInput[], config: TransformationConfig): Array<KeySelector>
|
|
191
241
|
|
|
192
242
|
export declare function requiredRestoreItems(text: string, context: PrivacyContext): Array<RestoreItem>
|
|
@@ -235,6 +285,48 @@ export declare function scan(text: string, config?: ScanConfig | undefined): Arr
|
|
|
235
285
|
/** Scan text and transform the detected findings. */
|
|
236
286
|
export declare function scanAndTransform(text: string, config: ScanAndTransformConfig): TransformResult
|
|
237
287
|
|
|
288
|
+
export declare function scanStructured(dataJson: JsonDocument, config?: StructuredScanConfig | undefined): StructuredScanResult
|
|
289
|
+
|
|
290
|
+
export interface StructuredFinding {
|
|
291
|
+
path: string
|
|
292
|
+
finding: Finding
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
export interface StructuredFindingInput {
|
|
296
|
+
path: string
|
|
297
|
+
finding: FindingInput
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/** Scan text and transform the detected findings. */
|
|
301
|
+
export declare function structuredRequiredKeySelectors(text: JsonDocument, findings: StructuredFindingInput[], config: TransformationConfig): Array<KeySelector>
|
|
302
|
+
|
|
303
|
+
export declare function structuredRequiredRestoreItems(text: JsonDocument, context: PrivacyContext): Array<RestoreItem>
|
|
304
|
+
|
|
305
|
+
export declare function structuredRequiredTokenizationItems(text: JsonDocument, findings: StructuredFindingInput[], config: TransformationConfig, context?: PrivacyContext | undefined): Array<TokenizeItem>
|
|
306
|
+
|
|
307
|
+
export interface StructuredRestoration {
|
|
308
|
+
path: string
|
|
309
|
+
restoration: Restoration
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
export declare function structuredRestoreWithResults(text: JsonDocument, context: PrivacyContext, results: Array<RestoredValueInput>): NativeStructuredRestoreResult
|
|
313
|
+
|
|
314
|
+
export declare function structuredScanAndTransform(text: JsonDocument, config: StructuredScanAndTransformConfig): NativeStructuredTransformResult
|
|
315
|
+
|
|
316
|
+
export interface StructuredScanResult {
|
|
317
|
+
mappings: Array<FieldMapping>
|
|
318
|
+
findings: Array<StructuredFinding>
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
export declare function structuredTransform(text: JsonDocument, findings: StructuredFindingInput[], config: TransformationConfig): NativeStructuredTransformResult
|
|
322
|
+
|
|
323
|
+
export interface StructuredTransformation {
|
|
324
|
+
path: string
|
|
325
|
+
transformation: Transformation
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
export declare function structuredTransformWithProviderResults(text: JsonDocument, findings: StructuredFindingInput[], config: TransformationConfig, context: PrivacyContext | undefined, resolvedKeys: Array<ResolvedKeyInput>, tokenResults: Array<TokenizeResultInput>): NativeStructuredTransformResult
|
|
329
|
+
|
|
238
330
|
export interface TextRange {
|
|
239
331
|
readonly start: number
|
|
240
332
|
readonly end: number
|
package/index.js
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import { Buffer } from "node:buffer";
|
|
2
2
|
import {
|
|
3
|
+
structuredTransform as nativeStructuredTransform,
|
|
4
|
+
structuredScanAndTransform as nativeStructuredScanAndTransform,
|
|
5
|
+
structuredRequiredKeySelectors as nativeStructuredRequiredKeySelectors,
|
|
6
|
+
structuredRequiredTokenizationItems as nativeStructuredRequiredTokenizationItems,
|
|
7
|
+
structuredTransformWithProviderResults as nativeStructuredTransformWithProviderResults,
|
|
8
|
+
structuredRequiredRestoreItems as nativeStructuredRequiredRestoreItems,
|
|
9
|
+
structuredRestoreWithResults as nativeStructuredRestoreWithResults,
|
|
10
|
+
prepareStructuredScanAndTransform as nativePrepareStructuredScanAndTransform,
|
|
11
|
+
discoverFields as nativeDiscoverFields,
|
|
12
|
+
scanStructured as nativeScanStructured,
|
|
3
13
|
prepareScanAndTransform as nativePrepareScanAndTransform,
|
|
4
14
|
requiredKeySelectors as nativeRequiredKeySelectors,
|
|
5
15
|
requiredRestoreItems as nativeRequiredRestoreItems,
|
|
@@ -167,7 +177,14 @@ export class PrivacyManager {
|
|
|
167
177
|
}));
|
|
168
178
|
}
|
|
169
179
|
|
|
170
|
-
async transform(text, findings, config, context) {
|
|
180
|
+
async transform(text, findings, config, context) { return this.#transform(text, findings, config, context); }
|
|
181
|
+
async scanAndTransform(text, config, context) { return this.#scanAndTransform(text, config, context); }
|
|
182
|
+
async restore(text, context) { return this.#restore(text, context); }
|
|
183
|
+
async transformStructured(data, findings, config, context) { return this.#transform(structuredJson(data), structuredOptions(findings), structuredOptions(config), structuredOptions(context), true); }
|
|
184
|
+
async scanAndTransformStructured(data, config, context) { return this.#scanAndTransform(structuredJson(data), structuredOptions(config), structuredOptions(context), true); }
|
|
185
|
+
async restoreStructured(data, context) { return this.#restore(structuredJson(data), structuredOptions(context), true); }
|
|
186
|
+
|
|
187
|
+
async #transform(text, findings, config, context, structured = false) {
|
|
171
188
|
if (typeof text !== "string") {
|
|
172
189
|
throw new TypeError("transform text must be a string");
|
|
173
190
|
}
|
|
@@ -176,11 +193,15 @@ export class PrivacyManager {
|
|
|
176
193
|
}
|
|
177
194
|
let resolved = [];
|
|
178
195
|
try {
|
|
179
|
-
const selectors = nativeRequiredKeySelectors(text, findings, config);
|
|
196
|
+
const selectors = (structured ? nativeStructuredRequiredKeySelectors : nativeRequiredKeySelectors)(text, findings, config);
|
|
197
|
+
const preparedItems = structured
|
|
198
|
+
? nativeStructuredRequiredTokenizationItems(text, findings, config, context)
|
|
199
|
+
: undefined;
|
|
180
200
|
resolved = await this.#resolve(selectors);
|
|
181
|
-
const items = nativeRequiredTokenizationItems(text, findings, config, context);
|
|
201
|
+
const items = preparedItems ?? nativeRequiredTokenizationItems(text, findings, config, context);
|
|
182
202
|
const tokens = await this.#tokenize(items, context);
|
|
183
|
-
|
|
203
|
+
const result = (structured ? nativeStructuredTransformWithProviderResults : nativeTransformWithProviderResults)(text, findings, config, context, resolved, tokens);
|
|
204
|
+
return structured ? structuredResult(result) : result;
|
|
184
205
|
} catch (error) {
|
|
185
206
|
if (error instanceof DataFogError) throw error;
|
|
186
207
|
throw normalizeError(error, "invalid_configuration");
|
|
@@ -189,21 +210,29 @@ export class PrivacyManager {
|
|
|
189
210
|
}
|
|
190
211
|
}
|
|
191
212
|
|
|
192
|
-
async scanAndTransform(text, config, context) {
|
|
213
|
+
async #scanAndTransform(text, config, context, structured = false) {
|
|
193
214
|
if (typeof text !== "string") {
|
|
194
215
|
throw new TypeError("scanAndTransform text must be a string");
|
|
195
216
|
}
|
|
196
217
|
let prepared;
|
|
197
218
|
try {
|
|
198
|
-
prepared = nativePrepareScanAndTransform(text, config);
|
|
219
|
+
prepared = (structured ? nativePrepareStructuredScanAndTransform : nativePrepareScanAndTransform)(text, config);
|
|
199
220
|
} catch (error) {
|
|
200
221
|
throw normalizeError(error, "invalid_configuration");
|
|
201
222
|
}
|
|
223
|
+
let preparedItems;
|
|
224
|
+
if (structured) {
|
|
225
|
+
try {
|
|
226
|
+
preparedItems = nativeStructuredRequiredTokenizationItems(text, prepared.findings, config.transform, context);
|
|
227
|
+
} catch (error) {
|
|
228
|
+
throw withPathPrefix(error, "/transform");
|
|
229
|
+
}
|
|
230
|
+
}
|
|
202
231
|
const resolved = await this.#resolve(prepared.selectors, "/transform");
|
|
203
232
|
try {
|
|
204
|
-
const items = nativeRequiredTokenizationItems(text, prepared.findings, config.transform, context);
|
|
233
|
+
const items = preparedItems ?? nativeRequiredTokenizationItems(text, prepared.findings, config.transform, context);
|
|
205
234
|
const tokens = await this.#tokenize(items, context);
|
|
206
|
-
|
|
235
|
+
const result = (structured ? nativeStructuredTransformWithProviderResults : nativeTransformWithProviderResults)(
|
|
207
236
|
text,
|
|
208
237
|
prepared.findings,
|
|
209
238
|
config.transform,
|
|
@@ -211,6 +240,7 @@ export class PrivacyManager {
|
|
|
211
240
|
resolved,
|
|
212
241
|
tokens,
|
|
213
242
|
);
|
|
243
|
+
return structured ? structuredResult(result) : result;
|
|
214
244
|
} catch (error) {
|
|
215
245
|
throw withPathPrefix(error, "/transform");
|
|
216
246
|
} finally {
|
|
@@ -219,17 +249,20 @@ export class PrivacyManager {
|
|
|
219
249
|
}
|
|
220
250
|
|
|
221
251
|
|
|
222
|
-
async restore(text, context) {
|
|
252
|
+
async #restore(text, context, structured = false) {
|
|
223
253
|
if (typeof text !== "string") {
|
|
224
254
|
throw new TypeError("restore text must be a string");
|
|
225
255
|
}
|
|
226
256
|
let items;
|
|
227
257
|
try {
|
|
228
|
-
items = nativeRequiredRestoreItems(text, context);
|
|
258
|
+
items = (structured ? nativeStructuredRequiredRestoreItems : nativeRequiredRestoreItems)(text, context);
|
|
229
259
|
} catch (error) {
|
|
230
260
|
throw normalizeError(error, "invalid_configuration");
|
|
231
261
|
}
|
|
232
|
-
if (items.length === 0)
|
|
262
|
+
if (items.length === 0) {
|
|
263
|
+
const result = (structured ? nativeStructuredRestoreWithResults : nativeRestoreWithResults)(text, context, []);
|
|
264
|
+
return structured ? structuredResult(result) : result;
|
|
265
|
+
}
|
|
233
266
|
if (!this.#tokenProvider) {
|
|
234
267
|
throw new DataFogError({
|
|
235
268
|
code: "token_provider_required",
|
|
@@ -242,7 +275,8 @@ export class PrivacyManager {
|
|
|
242
275
|
} catch (error) {
|
|
243
276
|
throw normalizeProviderError(error, undefined, "token_provider_error");
|
|
244
277
|
}
|
|
245
|
-
|
|
278
|
+
const result = (structured ? nativeStructuredRestoreWithResults : nativeRestoreWithResults)(text, context, Array.isArray(results) ? results : []);
|
|
279
|
+
return structured ? structuredResult(result) : result;
|
|
246
280
|
}
|
|
247
281
|
}
|
|
248
282
|
|
|
@@ -287,3 +321,67 @@ export function scanAndTransform(text, config) {
|
|
|
287
321
|
throw normalizeError(error, "invalid_configuration");
|
|
288
322
|
}
|
|
289
323
|
}
|
|
324
|
+
|
|
325
|
+
function structuredJson(data, omitUndefinedOptions = false) {
|
|
326
|
+
try {
|
|
327
|
+
if (data === null || typeof data !== "object") throw new TypeError();
|
|
328
|
+
const pending = [data];
|
|
329
|
+
const seen = new Set();
|
|
330
|
+
while (pending.length) {
|
|
331
|
+
const value = pending.pop();
|
|
332
|
+
if (value === null || typeof value === "string" || typeof value === "boolean") continue;
|
|
333
|
+
if (typeof value === "number") {
|
|
334
|
+
if (!Number.isFinite(value) || (Number.isInteger(value) && !Number.isSafeInteger(value))) throw new TypeError();
|
|
335
|
+
continue;
|
|
336
|
+
}
|
|
337
|
+
if (typeof value !== "object") throw new TypeError();
|
|
338
|
+
if (seen.has(value)) continue;
|
|
339
|
+
seen.add(value);
|
|
340
|
+
const array = Array.isArray(value);
|
|
341
|
+
if (!array && Object.getPrototypeOf(value) !== Object.prototype && Object.getPrototypeOf(value) !== null) throw new TypeError();
|
|
342
|
+
if (array && Object.keys(value).length !== value.length) throw new TypeError();
|
|
343
|
+
for (const key of Reflect.ownKeys(value)) {
|
|
344
|
+
if (array && key === "length") continue;
|
|
345
|
+
if (typeof key !== "string") throw new TypeError();
|
|
346
|
+
const descriptor = Object.getOwnPropertyDescriptor(value, key);
|
|
347
|
+
if (!descriptor.enumerable || !("value" in descriptor)) throw new TypeError();
|
|
348
|
+
if (array && (!/^(0|[1-9][0-9]*)$/.test(key) || Number(key) >= value.length)) throw new TypeError();
|
|
349
|
+
if (omitUndefinedOptions && !array && descriptor.value === undefined) continue;
|
|
350
|
+
pending.push(descriptor.value);
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
return JSON.stringify(data);
|
|
354
|
+
} catch {
|
|
355
|
+
throw new DataFogError({code:"invalid_configuration", reason:"invalid_type", path:"/data", message:"data must be a JSON object or array with finite numbers and safe integers"});
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
export function discoverFields(data, config) {
|
|
360
|
+
const json = structuredJson(data);
|
|
361
|
+
try { return nativeDiscoverFields(json, structuredOptions(config)); } catch (error) { throw normalizeError(error, "invalid_configuration"); }
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
export function scanStructured(data, config) {
|
|
365
|
+
const json = structuredJson(data);
|
|
366
|
+
try { return nativeScanStructured(json, structuredOptions(config)); } catch (error) { throw normalizeError(error, "invalid_configuration"); }
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
export function transformStructured(data, findings, config) {
|
|
370
|
+
const json = structuredJson(data);
|
|
371
|
+
try { return structuredResult(nativeStructuredTransform(json, structuredOptions(findings), structuredOptions(config))); } catch (error) { throw normalizeError(error, "invalid_configuration"); }
|
|
372
|
+
}
|
|
373
|
+
export function scanAndTransformStructured(data, config) {
|
|
374
|
+
const json = structuredJson(data);
|
|
375
|
+
try { return structuredResult(nativeStructuredScanAndTransform(json, structuredOptions(config))); } catch (error) { throw normalizeError(error, "invalid_configuration"); }
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
function structuredResult({dataJson, ...records}) {
|
|
379
|
+
return {data:JSON.parse(dataJson), ...records};
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
function structuredOptions(value) {
|
|
383
|
+
if (value === undefined) return undefined;
|
|
384
|
+
try { return JSON.parse(structuredJson(value, true)); } catch {
|
|
385
|
+
throw new DataFogError({code:"invalid_configuration", reason:"invalid_type", path:"", message:"structured request options must be JSON-compatible"});
|
|
386
|
+
}
|
|
387
|
+
}
|
package/native.js
CHANGED
|
@@ -81,8 +81,8 @@ function requireNative() {
|
|
|
81
81
|
try {
|
|
82
82
|
const binding = require('@datafog/node-android-arm64')
|
|
83
83
|
const bindingPackageVersion = require('@datafog/node-android-arm64/package.json').version
|
|
84
|
-
if (bindingPackageVersion !== '0.
|
|
85
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
84
|
+
if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
85
|
+
throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
86
86
|
}
|
|
87
87
|
return binding
|
|
88
88
|
} catch (e) {
|
|
@@ -97,8 +97,8 @@ function requireNative() {
|
|
|
97
97
|
try {
|
|
98
98
|
const binding = require('@datafog/node-android-arm-eabi')
|
|
99
99
|
const bindingPackageVersion = require('@datafog/node-android-arm-eabi/package.json').version
|
|
100
|
-
if (bindingPackageVersion !== '0.
|
|
101
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
100
|
+
if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
101
|
+
throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
102
102
|
}
|
|
103
103
|
return binding
|
|
104
104
|
} catch (e) {
|
|
@@ -118,8 +118,8 @@ function requireNative() {
|
|
|
118
118
|
try {
|
|
119
119
|
const binding = require('@datafog/node-win32-x64-gnu')
|
|
120
120
|
const bindingPackageVersion = require('@datafog/node-win32-x64-gnu/package.json').version
|
|
121
|
-
if (bindingPackageVersion !== '0.
|
|
122
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
121
|
+
if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
122
|
+
throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
123
123
|
}
|
|
124
124
|
return binding
|
|
125
125
|
} catch (e) {
|
|
@@ -134,8 +134,8 @@ function requireNative() {
|
|
|
134
134
|
try {
|
|
135
135
|
const binding = require('@datafog/node-win32-x64-msvc')
|
|
136
136
|
const bindingPackageVersion = require('@datafog/node-win32-x64-msvc/package.json').version
|
|
137
|
-
if (bindingPackageVersion !== '0.
|
|
138
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
137
|
+
if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
138
|
+
throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
139
139
|
}
|
|
140
140
|
return binding
|
|
141
141
|
} catch (e) {
|
|
@@ -151,8 +151,8 @@ function requireNative() {
|
|
|
151
151
|
try {
|
|
152
152
|
const binding = require('@datafog/node-win32-ia32-msvc')
|
|
153
153
|
const bindingPackageVersion = require('@datafog/node-win32-ia32-msvc/package.json').version
|
|
154
|
-
if (bindingPackageVersion !== '0.
|
|
155
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
154
|
+
if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
155
|
+
throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
156
156
|
}
|
|
157
157
|
return binding
|
|
158
158
|
} catch (e) {
|
|
@@ -167,8 +167,8 @@ function requireNative() {
|
|
|
167
167
|
try {
|
|
168
168
|
const binding = require('@datafog/node-win32-arm64-msvc')
|
|
169
169
|
const bindingPackageVersion = require('@datafog/node-win32-arm64-msvc/package.json').version
|
|
170
|
-
if (bindingPackageVersion !== '0.
|
|
171
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
170
|
+
if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
171
|
+
throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
172
172
|
}
|
|
173
173
|
return binding
|
|
174
174
|
} catch (e) {
|
|
@@ -186,8 +186,8 @@ function requireNative() {
|
|
|
186
186
|
try {
|
|
187
187
|
const binding = require('@datafog/node-darwin-universal')
|
|
188
188
|
const bindingPackageVersion = require('@datafog/node-darwin-universal/package.json').version
|
|
189
|
-
if (bindingPackageVersion !== '0.
|
|
190
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
189
|
+
if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
190
|
+
throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
191
191
|
}
|
|
192
192
|
return binding
|
|
193
193
|
} catch (e) {
|
|
@@ -202,8 +202,8 @@ function requireNative() {
|
|
|
202
202
|
try {
|
|
203
203
|
const binding = require('@datafog/node-darwin-x64')
|
|
204
204
|
const bindingPackageVersion = require('@datafog/node-darwin-x64/package.json').version
|
|
205
|
-
if (bindingPackageVersion !== '0.
|
|
206
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
205
|
+
if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
206
|
+
throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
207
207
|
}
|
|
208
208
|
return binding
|
|
209
209
|
} catch (e) {
|
|
@@ -218,8 +218,8 @@ function requireNative() {
|
|
|
218
218
|
try {
|
|
219
219
|
const binding = require('@datafog/node-darwin-arm64')
|
|
220
220
|
const bindingPackageVersion = require('@datafog/node-darwin-arm64/package.json').version
|
|
221
|
-
if (bindingPackageVersion !== '0.
|
|
222
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
221
|
+
if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
222
|
+
throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
223
223
|
}
|
|
224
224
|
return binding
|
|
225
225
|
} catch (e) {
|
|
@@ -238,8 +238,8 @@ function requireNative() {
|
|
|
238
238
|
try {
|
|
239
239
|
const binding = require('@datafog/node-freebsd-x64')
|
|
240
240
|
const bindingPackageVersion = require('@datafog/node-freebsd-x64/package.json').version
|
|
241
|
-
if (bindingPackageVersion !== '0.
|
|
242
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
241
|
+
if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
242
|
+
throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
243
243
|
}
|
|
244
244
|
return binding
|
|
245
245
|
} catch (e) {
|
|
@@ -254,8 +254,8 @@ function requireNative() {
|
|
|
254
254
|
try {
|
|
255
255
|
const binding = require('@datafog/node-freebsd-arm64')
|
|
256
256
|
const bindingPackageVersion = require('@datafog/node-freebsd-arm64/package.json').version
|
|
257
|
-
if (bindingPackageVersion !== '0.
|
|
258
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
257
|
+
if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
258
|
+
throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
259
259
|
}
|
|
260
260
|
return binding
|
|
261
261
|
} catch (e) {
|
|
@@ -275,8 +275,8 @@ function requireNative() {
|
|
|
275
275
|
try {
|
|
276
276
|
const binding = require('@datafog/node-linux-x64-musl')
|
|
277
277
|
const bindingPackageVersion = require('@datafog/node-linux-x64-musl/package.json').version
|
|
278
|
-
if (bindingPackageVersion !== '0.
|
|
279
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
278
|
+
if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
279
|
+
throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
280
280
|
}
|
|
281
281
|
return binding
|
|
282
282
|
} catch (e) {
|
|
@@ -291,8 +291,8 @@ function requireNative() {
|
|
|
291
291
|
try {
|
|
292
292
|
const binding = require('@datafog/node-linux-x64-gnu')
|
|
293
293
|
const bindingPackageVersion = require('@datafog/node-linux-x64-gnu/package.json').version
|
|
294
|
-
if (bindingPackageVersion !== '0.
|
|
295
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
294
|
+
if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
295
|
+
throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
296
296
|
}
|
|
297
297
|
return binding
|
|
298
298
|
} catch (e) {
|
|
@@ -309,8 +309,8 @@ function requireNative() {
|
|
|
309
309
|
try {
|
|
310
310
|
const binding = require('@datafog/node-linux-arm64-musl')
|
|
311
311
|
const bindingPackageVersion = require('@datafog/node-linux-arm64-musl/package.json').version
|
|
312
|
-
if (bindingPackageVersion !== '0.
|
|
313
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
312
|
+
if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
313
|
+
throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
314
314
|
}
|
|
315
315
|
return binding
|
|
316
316
|
} catch (e) {
|
|
@@ -325,8 +325,8 @@ function requireNative() {
|
|
|
325
325
|
try {
|
|
326
326
|
const binding = require('@datafog/node-linux-arm64-gnu')
|
|
327
327
|
const bindingPackageVersion = require('@datafog/node-linux-arm64-gnu/package.json').version
|
|
328
|
-
if (bindingPackageVersion !== '0.
|
|
329
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
328
|
+
if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
329
|
+
throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
330
330
|
}
|
|
331
331
|
return binding
|
|
332
332
|
} catch (e) {
|
|
@@ -343,8 +343,8 @@ function requireNative() {
|
|
|
343
343
|
try {
|
|
344
344
|
const binding = require('@datafog/node-linux-arm-musleabihf')
|
|
345
345
|
const bindingPackageVersion = require('@datafog/node-linux-arm-musleabihf/package.json').version
|
|
346
|
-
if (bindingPackageVersion !== '0.
|
|
347
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
346
|
+
if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
347
|
+
throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
348
348
|
}
|
|
349
349
|
return binding
|
|
350
350
|
} catch (e) {
|
|
@@ -359,8 +359,8 @@ function requireNative() {
|
|
|
359
359
|
try {
|
|
360
360
|
const binding = require('@datafog/node-linux-arm-gnueabihf')
|
|
361
361
|
const bindingPackageVersion = require('@datafog/node-linux-arm-gnueabihf/package.json').version
|
|
362
|
-
if (bindingPackageVersion !== '0.
|
|
363
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
362
|
+
if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
363
|
+
throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
364
364
|
}
|
|
365
365
|
return binding
|
|
366
366
|
} catch (e) {
|
|
@@ -377,8 +377,8 @@ function requireNative() {
|
|
|
377
377
|
try {
|
|
378
378
|
const binding = require('@datafog/node-linux-loong64-musl')
|
|
379
379
|
const bindingPackageVersion = require('@datafog/node-linux-loong64-musl/package.json').version
|
|
380
|
-
if (bindingPackageVersion !== '0.
|
|
381
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
380
|
+
if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
381
|
+
throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
382
382
|
}
|
|
383
383
|
return binding
|
|
384
384
|
} catch (e) {
|
|
@@ -393,8 +393,8 @@ function requireNative() {
|
|
|
393
393
|
try {
|
|
394
394
|
const binding = require('@datafog/node-linux-loong64-gnu')
|
|
395
395
|
const bindingPackageVersion = require('@datafog/node-linux-loong64-gnu/package.json').version
|
|
396
|
-
if (bindingPackageVersion !== '0.
|
|
397
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
396
|
+
if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
397
|
+
throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
398
398
|
}
|
|
399
399
|
return binding
|
|
400
400
|
} catch (e) {
|
|
@@ -411,8 +411,8 @@ function requireNative() {
|
|
|
411
411
|
try {
|
|
412
412
|
const binding = require('@datafog/node-linux-riscv64-musl')
|
|
413
413
|
const bindingPackageVersion = require('@datafog/node-linux-riscv64-musl/package.json').version
|
|
414
|
-
if (bindingPackageVersion !== '0.
|
|
415
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
414
|
+
if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
415
|
+
throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
416
416
|
}
|
|
417
417
|
return binding
|
|
418
418
|
} catch (e) {
|
|
@@ -427,8 +427,8 @@ function requireNative() {
|
|
|
427
427
|
try {
|
|
428
428
|
const binding = require('@datafog/node-linux-riscv64-gnu')
|
|
429
429
|
const bindingPackageVersion = require('@datafog/node-linux-riscv64-gnu/package.json').version
|
|
430
|
-
if (bindingPackageVersion !== '0.
|
|
431
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
430
|
+
if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
431
|
+
throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
432
432
|
}
|
|
433
433
|
return binding
|
|
434
434
|
} catch (e) {
|
|
@@ -444,8 +444,8 @@ function requireNative() {
|
|
|
444
444
|
try {
|
|
445
445
|
const binding = require('@datafog/node-linux-ppc64-gnu')
|
|
446
446
|
const bindingPackageVersion = require('@datafog/node-linux-ppc64-gnu/package.json').version
|
|
447
|
-
if (bindingPackageVersion !== '0.
|
|
448
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
447
|
+
if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
448
|
+
throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
449
449
|
}
|
|
450
450
|
return binding
|
|
451
451
|
} catch (e) {
|
|
@@ -460,8 +460,8 @@ function requireNative() {
|
|
|
460
460
|
try {
|
|
461
461
|
const binding = require('@datafog/node-linux-s390x-gnu')
|
|
462
462
|
const bindingPackageVersion = require('@datafog/node-linux-s390x-gnu/package.json').version
|
|
463
|
-
if (bindingPackageVersion !== '0.
|
|
464
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
463
|
+
if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
464
|
+
throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
465
465
|
}
|
|
466
466
|
return binding
|
|
467
467
|
} catch (e) {
|
|
@@ -480,8 +480,8 @@ function requireNative() {
|
|
|
480
480
|
try {
|
|
481
481
|
const binding = require('@datafog/node-openharmony-arm64')
|
|
482
482
|
const bindingPackageVersion = require('@datafog/node-openharmony-arm64/package.json').version
|
|
483
|
-
if (bindingPackageVersion !== '0.
|
|
484
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
483
|
+
if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
484
|
+
throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
485
485
|
}
|
|
486
486
|
return binding
|
|
487
487
|
} catch (e) {
|
|
@@ -496,8 +496,8 @@ function requireNative() {
|
|
|
496
496
|
try {
|
|
497
497
|
const binding = require('@datafog/node-openharmony-x64')
|
|
498
498
|
const bindingPackageVersion = require('@datafog/node-openharmony-x64/package.json').version
|
|
499
|
-
if (bindingPackageVersion !== '0.
|
|
500
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
499
|
+
if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
500
|
+
throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
501
501
|
}
|
|
502
502
|
return binding
|
|
503
503
|
} catch (e) {
|
|
@@ -512,8 +512,8 @@ function requireNative() {
|
|
|
512
512
|
try {
|
|
513
513
|
const binding = require('@datafog/node-openharmony-arm')
|
|
514
514
|
const bindingPackageVersion = require('@datafog/node-openharmony-arm/package.json').version
|
|
515
|
-
if (bindingPackageVersion !== '0.
|
|
516
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
515
|
+
if (bindingPackageVersion !== '0.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
516
|
+
throw new Error(`Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
517
517
|
}
|
|
518
518
|
return binding
|
|
519
519
|
} catch (e) {
|
|
@@ -652,8 +652,8 @@ if (!nativeBinding || forceWasi) {
|
|
|
652
652
|
if (!candidateFailed) {
|
|
653
653
|
if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
654
654
|
const bindingPackageVersion = require('@datafog/node-wasm32-wasi/package.json').version
|
|
655
|
-
if (bindingPackageVersion !== '0.
|
|
656
|
-
throw new Error(`WASI binding package version mismatch, expected 0.
|
|
655
|
+
if (bindingPackageVersion !== '0.3.0') {
|
|
656
|
+
throw new Error(`WASI binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
659
|
wasiBinding = require('@datafog/node-wasm32-wasi')
|
|
@@ -703,14 +703,24 @@ if (!nativeBinding) {
|
|
|
703
703
|
throw new Error(`Failed to load native binding`)
|
|
704
704
|
}
|
|
705
705
|
|
|
706
|
-
const { prepareScanAndTransform, requiredKeySelectors, requiredRestoreItems, requiredTokenizationItems, restoreWithResults, scan, scanAndTransform, transform, transformWithProviderResults, transformWithResolvedKeys } = nativeBinding
|
|
706
|
+
const { discoverFields, prepareScanAndTransform, prepareStructuredScanAndTransform, requiredKeySelectors, requiredRestoreItems, requiredTokenizationItems, restoreWithResults, scan, scanAndTransform, scanStructured, structuredRequiredKeySelectors, structuredRequiredRestoreItems, structuredRequiredTokenizationItems, structuredRestoreWithResults, structuredScanAndTransform, structuredTransform, structuredTransformWithProviderResults, transform, transformWithProviderResults, transformWithResolvedKeys } = nativeBinding
|
|
707
|
+
export { discoverFields }
|
|
707
708
|
export { prepareScanAndTransform }
|
|
709
|
+
export { prepareStructuredScanAndTransform }
|
|
708
710
|
export { requiredKeySelectors }
|
|
709
711
|
export { requiredRestoreItems }
|
|
710
712
|
export { requiredTokenizationItems }
|
|
711
713
|
export { restoreWithResults }
|
|
712
714
|
export { scan }
|
|
713
715
|
export { scanAndTransform }
|
|
716
|
+
export { scanStructured }
|
|
717
|
+
export { structuredRequiredKeySelectors }
|
|
718
|
+
export { structuredRequiredRestoreItems }
|
|
719
|
+
export { structuredRequiredTokenizationItems }
|
|
720
|
+
export { structuredRestoreWithResults }
|
|
721
|
+
export { structuredScanAndTransform }
|
|
722
|
+
export { structuredTransform }
|
|
723
|
+
export { structuredTransformWithProviderResults }
|
|
714
724
|
export { transform }
|
|
715
725
|
export { transformWithProviderResults }
|
|
716
726
|
export { transformWithResolvedKeys }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datafog/node",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Fast structured PII detection for Node.js, powered by Rust",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
"typescript": "7.0.2"
|
|
49
49
|
},
|
|
50
50
|
"optionalDependencies": {
|
|
51
|
-
"@datafog/node-darwin-arm64": "0.
|
|
52
|
-
"@datafog/node-darwin-x64": "0.
|
|
53
|
-
"@datafog/node-linux-x64-gnu": "0.
|
|
54
|
-
"@datafog/node-linux-arm64-gnu": "0.
|
|
55
|
-
"@datafog/node-win32-x64-msvc": "0.
|
|
51
|
+
"@datafog/node-darwin-arm64": "0.3.0",
|
|
52
|
+
"@datafog/node-darwin-x64": "0.3.0",
|
|
53
|
+
"@datafog/node-linux-x64-gnu": "0.3.0",
|
|
54
|
+
"@datafog/node-linux-arm64-gnu": "0.3.0",
|
|
55
|
+
"@datafog/node-win32-x64-msvc": "0.3.0"
|
|
56
56
|
}
|
|
57
57
|
}
|