@fedify/sqlite 1.8.1-pr.347.1259 → 1.8.1-pr.348.1271

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/deno.json CHANGED
@@ -1,19 +1,20 @@
1
1
  {
2
2
  "name": "@fedify/sqlite",
3
- "version": "1.8.1-pr.347.1259+fed6c010",
3
+ "version": "1.8.1-pr.348.1271+7aea35ed",
4
4
  "license": "MIT",
5
5
  "exports": {
6
- ".": "./mod.ts",
7
- "./kv": "./kv.ts"
6
+ ".": "./src/mod.ts",
7
+ "./kv": "./src/kv.ts"
8
8
  },
9
9
  "imports": {
10
- "@fedify/sqlite": "./mod.ts",
11
- "@fedify/sqlite/": "./",
12
- "#sqlite": "./sqlite.node.ts"
10
+ "@fedify/sqlite": "./src/mod.ts",
11
+ "@fedify/sqlite/": "./src/",
12
+ "#sqlite": "./src/sqlite.node.ts"
13
13
  },
14
14
  "exclude": [
15
+ "dist",
15
16
  "node_modules",
16
- "sqlite.bun.ts"
17
+ "src/sqlite.bun.ts"
17
18
  ],
18
19
  "publish": {
19
20
  "exclude": [
@@ -21,7 +22,7 @@
21
22
  ]
22
23
  },
23
24
  "tasks": {
24
- "check": "deno fmt --check && deno lint && deno check *.ts",
25
+ "check": "deno fmt --check && deno lint && deno check",
25
26
  "test": "deno test --allow-net --allow-env --doc --no-check=leaks"
26
27
  }
27
28
  }
package/dist/adapter.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
 
3
- //#region adapter.d.ts
3
+ //#region src/adapter.d.ts
4
4
 
5
5
  /**
6
6
  * SQLite database adapter.
package/dist/kv.d.ts CHANGED
@@ -2,7 +2,7 @@ import { Temporal } from "@js-temporal/polyfill";
2
2
  import { PlatformDatabase } from "#sqlite";
3
3
  import { KvKey, KvStore, KvStoreSetOptions } from "@fedify/fedify";
4
4
 
5
- //#region kv.d.ts
5
+ //#region src/kv.d.ts
6
6
  /**
7
7
  * Options for the SQLite key–value store.
8
8
  */
package/dist/kv.js CHANGED
@@ -6,7 +6,7 @@ import { SqliteDatabase } from "#sqlite";
6
6
  import { getLogger } from "@logtape/logtape";
7
7
  import { isEqual } from "es-toolkit";
8
8
 
9
- //#region kv.ts
9
+ //#region src/kv.ts
10
10
  const logger = getLogger([
11
11
  "fedify",
12
12
  "sqlite",
@@ -4,7 +4,7 @@
4
4
  import { __toESM } from "../../../../../../../_virtual/rolldown_runtime.js";
5
5
  import { require_jsbi_cjs } from "../../../../../jsbi@4.3.2/node_modules/jsbi/dist/jsbi-cjs.js";
6
6
 
7
- //#region ../node_modules/.pnpm/@js-temporal+polyfill@0.5.1/node_modules/@js-temporal/polyfill/dist/index.esm.js
7
+ //#region ../../node_modules/.pnpm/@js-temporal+polyfill@0.5.1/node_modules/@js-temporal/polyfill/dist/index.esm.js
8
8
  var import_jsbi_cjs = __toESM(require_jsbi_cjs(), 1);
9
9
  const t = import_jsbi_cjs.default.BigInt(0), n = import_jsbi_cjs.default.BigInt(1), r = import_jsbi_cjs.default.BigInt(2), o = import_jsbi_cjs.default.BigInt(10), i = import_jsbi_cjs.default.BigInt(24), a = import_jsbi_cjs.default.BigInt(60), s = import_jsbi_cjs.default.BigInt(1e3), c = import_jsbi_cjs.default.BigInt(1e6), d = import_jsbi_cjs.default.BigInt(1e9), h = import_jsbi_cjs.default.multiply(import_jsbi_cjs.default.BigInt(3600), d), u = import_jsbi_cjs.default.multiply(a, d), l = import_jsbi_cjs.default.multiply(h, i);
10
10
  function m(t$1) {
@@ -5,8 +5,8 @@
5
5
 
6
6
  import { __commonJS } from "../../../../../../_virtual/rolldown_runtime.js";
7
7
 
8
- //#region ../node_modules/.pnpm/jsbi@4.3.2/node_modules/jsbi/dist/jsbi-cjs.js
9
- var require_jsbi_cjs = __commonJS({ "../node_modules/.pnpm/jsbi@4.3.2/node_modules/jsbi/dist/jsbi-cjs.js"(exports, module) {
8
+ //#region ../../node_modules/.pnpm/jsbi@4.3.2/node_modules/jsbi/dist/jsbi-cjs.js
9
+ var require_jsbi_cjs = __commonJS({ "../../node_modules/.pnpm/jsbi@4.3.2/node_modules/jsbi/dist/jsbi-cjs.js"(exports, module) {
10
10
  var JSBI = class JSBI extends Array {
11
11
  constructor(i, _) {
12
12
  if (super(i), this.sign = _, Object.setPrototypeOf(this, JSBI.prototype), i > JSBI.__kMaxLength) throw new RangeError("Maximum BigInt size exceeded");
@@ -2,7 +2,7 @@ import { Temporal } from "@js-temporal/polyfill";
2
2
  import { SqliteDatabaseAdapter, SqliteStatementAdapter } from "./adapter.js";
3
3
  import { Database, Statement } from "bun:sqlite";
4
4
 
5
- //#region sqlite.bun.d.ts
5
+ //#region src/sqlite.bun.d.ts
6
6
  declare class SqliteDatabase implements SqliteDatabaseAdapter {
7
7
  private readonly db;
8
8
  constructor(db: Database);
@@ -3,7 +3,7 @@
3
3
 
4
4
  import { Database } from "bun:sqlite";
5
5
 
6
- //#region sqlite.bun.ts
6
+ //#region src/sqlite.bun.ts
7
7
  var SqliteDatabase = class {
8
8
  constructor(db) {
9
9
  this.db = db;
@@ -2,7 +2,7 @@ import { Temporal } from "@js-temporal/polyfill";
2
2
  import { SqliteDatabaseAdapter, SqliteStatementAdapter } from "./adapter.js";
3
3
  import { DatabaseSync, StatementSync } from "node:sqlite";
4
4
 
5
- //#region sqlite.node.d.ts
5
+ //#region src/sqlite.node.d.ts
6
6
  declare class SqliteDatabase implements SqliteDatabaseAdapter {
7
7
  private readonly db;
8
8
  constructor(db: DatabaseSync);
@@ -3,7 +3,7 @@
3
3
 
4
4
  import { DatabaseSync } from "node:sqlite";
5
5
 
6
- //#region sqlite.node.ts
6
+ //#region src/sqlite.node.ts
7
7
  var SqliteDatabase = class {
8
8
  constructor(db) {
9
9
  this.db = db;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/sqlite",
3
- "version": "1.8.1-pr.347.1259+fed6c010",
3
+ "version": "1.8.1-pr.348.1271+7aea35ed",
4
4
  "description": "SQLite drivers for Fedify",
5
5
  "keywords": [
6
6
  "fedify",
@@ -12,7 +12,7 @@
12
12
  "repository": {
13
13
  "type": "git",
14
14
  "url": "git+https://github.com/fedify-dev/fedify.git",
15
- "directory": "sqlite"
15
+ "directory": "packages/sqlite"
16
16
  },
17
17
  "bugs": {
18
18
  "url": "https://github.com/fedify-dev/fedify/issues"
@@ -51,7 +51,7 @@
51
51
  "es-toolkit": "^1.31.0"
52
52
  },
53
53
  "peerDependencies": {
54
- "@fedify/fedify": "1.8.1-pr.347.1259+fed6c010"
54
+ "@fedify/fedify": "1.8.1-pr.348.1271+7aea35ed"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@js-temporal/polyfill": "^0.5.1",
@@ -62,8 +62,8 @@
62
62
  "scripts": {
63
63
  "build": "tsdown",
64
64
  "prepublish": "tsdown",
65
- "test": "tsdown && node --experimental-transform-types --test kv.test.ts",
66
- "test:bun": "tsdown && bun test --timeout=10000 kv.test.ts",
67
- "test:deno": "tsdown && deno test kv.test.ts"
65
+ "test": "tsdown && node --experimental-transform-types --test",
66
+ "test:bun": "tsdown && bun test --timeout=10000",
67
+ "test:deno": "deno task test"
68
68
  }
69
69
  }
package/tsdown.config.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineConfig } from "tsdown";
2
2
 
3
3
  export default defineConfig({
4
- entry: ["mod.ts", "kv.ts", "sqlite.node.ts", "sqlite.bun.ts"],
4
+ entry: ["src/mod.ts", "src/kv.ts", "src/sqlite.node.ts", "src/sqlite.bun.ts"],
5
5
  dts: true,
6
6
  unbundle: true,
7
7
  platform: "node",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes