Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8c4f89ab8a |
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
@@ -103,6 +103,11 @@ jobs:
|
|||||||
node-version: '20'
|
node-version: '20'
|
||||||
registry-url: 'https://npm.pkg.github.com'
|
registry-url: 'https://npm.pkg.github.com'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
|
working-directory: js/
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
- name: Build TypeScript
|
- name: Build TypeScript
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
working-directory: js/
|
working-directory: js/
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ export async function initLibcurl(): Promise<void> {
|
|||||||
const wsProto = location.protocol === "https:" ? "wss:" : "ws:";
|
const wsProto = location.protocol === "https:" ? "wss:" : "ws:";
|
||||||
let wsUrl = `${wsProto}//${location.host}/wisp/`;
|
let wsUrl = `${wsProto}//${location.host}/wisp/`;
|
||||||
libcurl.set_websocket(wsUrl);
|
libcurl.set_websocket(wsUrl);
|
||||||
await libcurl.load_wasm();
|
await libcurl.load_wasm("/libcurl.wasm");
|
||||||
initialized = true;
|
initialized = true;
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
|||||||
@@ -1,26 +1,21 @@
|
|||||||
{
|
{
|
||||||
"name": "@lbr77/anisette-js",
|
"name": "@lbr77/anisette-js",
|
||||||
"version": "0.1.2",
|
"version": "0.1.0",
|
||||||
"description": "High-level JavaScript/TypeScript API for Apple Anisette headers via WASM",
|
"description": "High-level JavaScript/TypeScript API for Apple Anisette headers via WASM",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"module": "./dist/index.js",
|
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"browser": "./dist/browser.js",
|
"default": "./src/index.ts",
|
||||||
"import": "./dist/index.js",
|
"browser": "./src/browser.ts"
|
||||||
"default": "./dist/index.js"
|
}
|
||||||
},
|
|
||||||
"./browser": {
|
|
||||||
"types": "./dist/browser.d.ts",
|
|
||||||
"default": "./dist/browser.js"
|
|
||||||
},
|
|
||||||
"./package.json": "./package.json"
|
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist",
|
||||||
|
"./src/anisette_rs.js",
|
||||||
|
"./src/anisette_rs.node.js"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc && cp src/anisette_rs.js dist/ && cp src/anisette_rs.node.js dist/",
|
"build": "tsc && cp src/anisette_rs.js dist/ && cp src/anisette_rs.node.js dist/",
|
||||||
@@ -33,8 +28,8 @@
|
|||||||
"@types/node": "^25.3.2"
|
"@types/node": "^25.3.2"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "https://registry.npmjs.org/",
|
"registry": "https://npm.pkg.github.com",
|
||||||
"access": "public"
|
"access": "restricted"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
@@ -100,8 +100,7 @@ export class Anisette {
|
|||||||
mountIdbfsPaths(bridge, libraryPath, provisioningPath);
|
mountIdbfsPaths(bridge, libraryPath, provisioningPath);
|
||||||
try {
|
try {
|
||||||
await bridge.syncIdbfsFromStorage();
|
await bridge.syncIdbfsFromStorage();
|
||||||
} catch (err) {
|
} catch {
|
||||||
console.log("[anisette] Failed to sync IDBFS from storage:", err);
|
|
||||||
// Ignore errors - might be first run with no existing data
|
// Ignore errors - might be first run with no existing data
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user