mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-04 08:38:34 +00:00
16 lines
610 B
JavaScript
16 lines
610 B
JavaScript
import { createRequire } from 'node:module';
|
|
|
|
const require = createRequire(import.meta.url);
|
|
|
|
/** @type {import('.')} */
|
|
const binding = require('./server-native.node');
|
|
|
|
export const mergeUpdatesInApplyWay = binding.mergeUpdatesInApplyWay;
|
|
export const verifyChallengeResponse = binding.verifyChallengeResponse;
|
|
export const mintChallengeResponse = binding.mintChallengeResponse;
|
|
export const getMime = binding.getMime;
|
|
export const Tokenizer = binding.Tokenizer;
|
|
export const fromModelName = binding.fromModelName;
|
|
export const htmlSanitize = binding.htmlSanitize;
|
|
export const parseDoc = binding.parseDoc;
|