ok, a build works now but still messing around with it

This commit is contained in:
Jack Case
2025-12-10 17:06:48 +00:00
parent 6cc5f5221e
commit eaae532f4f
5 changed files with 34 additions and 6 deletions

View File

@@ -6,4 +6,8 @@ tsc
mkdir -p scripts/altcha mkdir -p scripts/altcha
cp -r node_modules/altcha/dist_external scripts/altcha/ cp -r node_modules/altcha/dist_external scripts/altcha/
mkdir -p scripts/indexeddb-promise
cp node_modules/@coderundebug/indexeddb-promise/* scripts/indexeddb-promise
zip -r package.zip icons/ pages/ scripts/ styles/ manifest.json zip -r package.zip icons/ pages/ scripts/ styles/ manifest.json

View File

@@ -1,5 +1,6 @@
{ {
"dependencies": { "dependencies": {
"@coderundebug/indexeddb-promise": "git+https://github.com/StephenHassall/indexeddb-promise.git",
"altcha": "^2.2.4" "altcha": "^2.2.4"
}, },
"devDependencies": { "devDependencies": {
@@ -13,5 +14,6 @@
"build": "dev-scripts/build-extension.sh", "build": "dev-scripts/build-extension.sh",
"pretest": "tsc", "pretest": "tsc",
"test": "xvfb-run -a jasmine-browser-runner runSpecs" "test": "xvfb-run -a jasmine-browser-runner runSpecs"
} },
"type": "module"
} }

View File

@@ -1,3 +1,8 @@
// import { } from "./common.js"
import { Database } from "indexeddb-promise/indexeddb.js"
const db = new Database("asdf", 1)
export class IDBCursorValueIterator { export class IDBCursorValueIterator {
cursor: IDBCursorWithValue cursor: IDBCursorWithValue

View File

@@ -1,13 +1,26 @@
{ {
"include": ["src/**/*"], "include": [
"src/**/*",
"node_modules/altcha/*",
"node_modules/@coderundebug/indexeddb-promise/*"
],
"compilerOptions": { "compilerOptions": {
"allowJs": true,
"outDir": "scripts", "outDir": "scripts",
"noImplicitAny": true,
"lib": ["ES7", "DOM"], "lib": ["ES7", "DOM"],
"noImplicitAny": true,
"noFallthroughCasesInSwitch": true,
"sourceMap": true, "sourceMap": true,
"target": "esnext", "target": "esnext",
"baseUrl": "src/", "baseUrl": ".",
"module": "esnext", "paths": {
"noFallthroughCasesInSwitch": true "indexeddb-promise/*": ["node_modules/@coderundebug/indexeddb-promise/*"]
},
"module": "nodenext",
} }
} }

View File

@@ -12,6 +12,10 @@
resolved "https://registry.yarnpkg.com/@bazel/runfiles/-/runfiles-6.5.0.tgz#63cf7b77b91b54873e75f7a08fabec215c6888be" resolved "https://registry.yarnpkg.com/@bazel/runfiles/-/runfiles-6.5.0.tgz#63cf7b77b91b54873e75f7a08fabec215c6888be"
integrity sha512-RzahvqTkfpY2jsDxo8YItPX+/iZ6hbiikw1YhE0bA9EKBR5Og8Pa6FHn9PO9M0zaXRVsr0GFQLKbB/0rzy9SzA== integrity sha512-RzahvqTkfpY2jsDxo8YItPX+/iZ6hbiikw1YhE0bA9EKBR5Og8Pa6FHn9PO9M0zaXRVsr0GFQLKbB/0rzy9SzA==
"@coderundebug/indexeddb-promise@git+https://github.com/StephenHassall/indexeddb-promise.git":
version "1.0.4"
resolved "git+https://github.com/StephenHassall/indexeddb-promise.git#5b7427145f60215eaa533fd15218736fc203a068"
"@isaacs/cliui@^8.0.2": "@isaacs/cliui@^8.0.2":
version "8.0.2" version "8.0.2"
resolved "https://registry.yarnpkg.com/@isaacs/cliui/-/cliui-8.0.2.tgz#b37667b7bc181c168782259bab42474fbf52b550" resolved "https://registry.yarnpkg.com/@isaacs/cliui/-/cliui-8.0.2.tgz#b37667b7bc181c168782259bab42474fbf52b550"