Compare commits
3 Commits
Author | SHA1 | Date |
---|---|---|
Bauke | 137c8eb290 | |
Bauke | f4fa51251e | |
Bauke | dd3eb83ed8 |
|
@ -1,5 +1,4 @@
|
||||||
import process from "node:process";
|
import process from "node:process";
|
||||||
|
|
||||||
import {build} from "esbuild";
|
import {build} from "esbuild";
|
||||||
import {cmd} from "web-ext";
|
import {cmd} from "web-ext";
|
||||||
|
|
||||||
|
|
20
package.json
20
package.json
|
@ -26,17 +26,17 @@
|
||||||
"webextension-polyfill": "^0.10.0"
|
"webextension-polyfill": "^0.10.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@bauke/eslint-config": "^0.1.2",
|
"@bauke/eslint-config": "^0.1.4",
|
||||||
"@bauke/prettier-config": "^0.1.2",
|
"@bauke/prettier-config": "^0.1.4",
|
||||||
"@holllo/test": "^0.1.0",
|
"@holllo/test": "^0.2.1",
|
||||||
"@types/node": "^18.11.17",
|
"@types/node": "^20.10.2",
|
||||||
"@types/webextension-polyfill": "^0.9.2",
|
"@types/webextension-polyfill": "^0.10.7",
|
||||||
"esbuild": "^0.16.8",
|
"esbuild": "^0.19.8",
|
||||||
"tsx": "^3.12.1",
|
"tsx": "^4.6.2",
|
||||||
"typescript": "^4.9.4",
|
"typescript": "^5.3.2",
|
||||||
"web-ext": "^7.4.0",
|
"web-ext": "^7.8.0",
|
||||||
"webextension-polyfill": "^0.10.0",
|
"webextension-polyfill": "^0.10.0",
|
||||||
"xo": "^0.53.1"
|
"xo": "^0.56.0"
|
||||||
},
|
},
|
||||||
"prettier": "@bauke/prettier-config",
|
"prettier": "@bauke/prettier-config",
|
||||||
"xo": {
|
"xo": {
|
||||||
|
|
5397
pnpm-lock.yaml
5397
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
|
@ -1,5 +1,4 @@
|
||||||
import browser from "webextension-polyfill";
|
import browser from "webextension-polyfill";
|
||||||
|
|
||||||
import {createValue} from "../build/index.js";
|
import {createValue} from "../build/index.js";
|
||||||
|
|
||||||
const updatedDate = await createValue<Date>({
|
const updatedDate = await createValue<Date>({
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import {setup, type TestContext} from "@holllo/test";
|
import {setup, type TestContext} from "@holllo/test";
|
||||||
import browser from "webextension-polyfill";
|
import browser from "webextension-polyfill";
|
||||||
|
|
||||||
import {createValue, type Value} from "../source/index.js";
|
import {createValue, type Value} from "../source/index.js";
|
||||||
|
|
||||||
const create = async <T>(
|
const create = async <T>(
|
||||||
|
@ -34,10 +33,10 @@ const sampleObject: SampleObject = {
|
||||||
status: "passed",
|
status: "passed",
|
||||||
};
|
};
|
||||||
|
|
||||||
const group = await setup("Value<T>", async (group) => {
|
await setup("Value<T>", async (group) => {
|
||||||
const samples = [
|
const samples = [
|
||||||
["number", "testNumber", Math.PI],
|
["number", "testNumber", Math.PI],
|
||||||
["string", "testString", "A string to test with!" as string],
|
["string", "testString", "A string to test with!"],
|
||||||
["SampleObject", "testSampleObject", sampleObject],
|
["SampleObject", "testSampleObject", sampleObject],
|
||||||
] as const;
|
] as const;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue