resolve issue with missing vite-plugin-node-polyfills
add LibreJS licenses to all demo JS split browser build from node build add copyright info to license files update to use yarn v4.13.0 update to v0.9.2
This commit is contained in:
5
dist-browser/browser.d.ts
vendored
Normal file
5
dist-browser/browser.d.ts
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
export type * from './types.ts';
|
||||
export { default as hashTwt } from './hashTwt.ts';
|
||||
export { default as loadAndParseTwtxtFile } from './loadAndParseTwtxt.ts';
|
||||
export { default as parseTwtxt } from './parseTwtxt.ts';
|
||||
export { base32Encode } from './utils.ts';
|
||||
@@ -1,4 +1,10 @@
|
||||
// @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt
|
||||
/*
|
||||
* twtxt-lib
|
||||
* https://twtxt-lib.itsericwoodward.com/
|
||||
* Copyright (c) 2026 Eric Woodward
|
||||
* Released under the MIT License
|
||||
*/
|
||||
var __defProp = Object.defineProperty;
|
||||
var __defProps = Object.defineProperties;
|
||||
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
||||
@@ -2894,7 +2900,6 @@ const base32Encode = (payload) => {
|
||||
return encoder.write(payload).finalize();
|
||||
};
|
||||
const getValueOrFirstEntry = (value) => Array.isArray(value) && value.length ? value[0] : value;
|
||||
globalThis.Buffer = Buffer$1;
|
||||
const dateRegex = /^(\d{4})-(\d{2})-(\d{2})([tT ])(\d{2}):(\d{2}):(\d{2})\.?(\d{3})?(?:(?:([+-]\d{2}):?(\d{2}))|Z)?$/;
|
||||
const formatRFC3339 = (date) => {
|
||||
const pad = (num = 0) => `${+num < 10 ? 0 : ""}${+num}`;
|
||||
@@ -3391,6 +3396,7 @@ function loadAndParseTwtxtFile(url = "") {
|
||||
}
|
||||
});
|
||||
}
|
||||
globalThis.Buffer = Buffer$1;
|
||||
export {
|
||||
base32Encode,
|
||||
hashTwt,
|
||||
|
||||
File diff suppressed because one or more lines are too long
11
dist-browser/twtxt-lib.min.js
vendored
11
dist-browser/twtxt-lib.min.js
vendored
@@ -1,4 +1,10 @@
|
||||
// @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt
|
||||
/*
|
||||
* twtxt-lib
|
||||
* https://twtxt-lib.itsericwoodward.com/
|
||||
* Copyright (c) 2026 Eric Woodward
|
||||
* Released under the MIT License
|
||||
*/
|
||||
var er = Object.defineProperty, nr = Object.defineProperties;
|
||||
var ir = Object.getOwnPropertyDescriptors;
|
||||
var _t = Object.getOwnPropertySymbols;
|
||||
@@ -1847,9 +1853,7 @@ function br() {
|
||||
})(kt)), kt;
|
||||
}
|
||||
var Br = br();
|
||||
const Er = /* @__PURE__ */ Mt(Br), Ir = (f) => new Er.Encoder({ type: "rfc4648" }).write(f).finalize(), $r = (f) => Array.isArray(f) && f.length ? f[0] : f;
|
||||
globalThis.Buffer = yr;
|
||||
const Fr = /^(\d{4})-(\d{2})-(\d{2})([tT ])(\d{2}):(\d{2}):(\d{2})\.?(\d{3})?(?:(?:([+-]\d{2}):?(\d{2}))|Z)?$/, Ur = (f) => {
|
||||
const Er = /* @__PURE__ */ Mt(Br), Ir = (f) => new Er.Encoder({ type: "rfc4648" }).write(f).finalize(), $r = (f) => Array.isArray(f) && f.length ? f[0] : f, Fr = /^(\d{4})-(\d{2})-(\d{2})([tT ])(\d{2}):(\d{2}):(\d{2})\.?(\d{3})?(?:(?:([+-]\d{2}):?(\d{2}))|Z)?$/, Ur = (f) => {
|
||||
const l = (p = 0) => `${+p < 10 ? 0 : ""}${+p}`, x = (p = 0) => `${+p < 1e3 ? 0 : ""}${+p < 100 ? 0 : ""}${+p < 10 ? 0 : ""}${+p}`;
|
||||
let d = Fr.exec(f);
|
||||
d && (d == null ? void 0 : d[9]) === void 0 && (d[9] = "+00"), d && (d == null ? void 0 : d[10]) === void 0 && (d[10] = "00");
|
||||
@@ -2308,6 +2312,7 @@ function te(f = "") {
|
||||
}
|
||||
});
|
||||
}
|
||||
globalThis.Buffer = yr;
|
||||
export {
|
||||
Ir as base32Encode,
|
||||
Ar as hashTwt,
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user