@willbooster/shared-lib 6.1.5 → 7.0.1
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/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/sqlite.cjs +2 -0
- package/dist/sqlite.cjs.map +1 -0
- package/dist/sqlite.d.ts +2 -0
- package/dist/sqlite.js +2 -0
- package/dist/sqlite.js.map +1 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("./error.cjs"),r=require("./humanize.cjs"),s=require("./mail.cjs"),n=require("./parseCommandLineArgs.cjs"),o=require("./shuffle.cjs"),i=require("./sleep.cjs"),a=require("./zenkaku.cjs");exports.errorify=e.errorify,exports.ignoreEnoent=e.ignoreEnoent,exports.ignoreEnoentAsync=e.ignoreEnoentAsync,exports.ignoreError=e.ignoreError,exports.ignoreErrorAsync=e.ignoreErrorAsync,exports.withRetry=e.withRetry,exports.humanizeNumber=r.humanizeNumber,exports.mailTemplates=s.mailTemplates,exports.parseCommandLineArgs=n.parseCommandLineArgs,exports.shuffle=o.shuffle,exports.sleep=i.sleep,exports.zenkakuAlphanumericalsToHankaku=a.zenkakuAlphanumericalsToHankaku;
|
|
1
|
+
"use strict";var e=require("./error.cjs"),r=require("./humanize.cjs"),s=require("./mail.cjs"),n=require("./parseCommandLineArgs.cjs"),o=require("./shuffle.cjs"),i=require("./sleep.cjs"),t=require("./sqlite.cjs"),a=require("./zenkaku.cjs");exports.errorify=e.errorify,exports.ignoreEnoent=e.ignoreEnoent,exports.ignoreEnoentAsync=e.ignoreEnoentAsync,exports.ignoreError=e.ignoreError,exports.ignoreErrorAsync=e.ignoreErrorAsync,exports.withRetry=e.withRetry,exports.humanizeNumber=r.humanizeNumber,exports.mailTemplates=s.mailTemplates,exports.parseCommandLineArgs=n.parseCommandLineArgs,exports.shuffle=o.shuffle,exports.sleep=i.sleep,exports.getConnectionLevelSqlitePragmas=t.getConnectionLevelSqlitePragmas,exports.getPersistentSqlitePragmas=t.getPersistentSqlitePragmas,exports.zenkakuAlphanumericalsToHankaku=a.zenkakuAlphanumericalsToHankaku;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.d.ts
CHANGED
|
@@ -4,5 +4,6 @@ export { mailTemplates } from './mail.js';
|
|
|
4
4
|
export { parseCommandLineArgs } from './parseCommandLineArgs.js';
|
|
5
5
|
export { shuffle } from './shuffle.js';
|
|
6
6
|
export { sleep } from './sleep.js';
|
|
7
|
+
export { getConnectionLevelSqlitePragmas, getPersistentSqlitePragmas } from './sqlite.js';
|
|
7
8
|
export { zenkakuAlphanumericalsToHankaku } from './zenkaku.js';
|
|
8
9
|
export type { RetryOptions } from './error.js';
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{errorify,ignoreEnoent,ignoreEnoentAsync,ignoreError,ignoreErrorAsync,withRetry}from"./error.js";export{humanizeNumber}from"./humanize.js";export{mailTemplates}from"./mail.js";export{parseCommandLineArgs}from"./parseCommandLineArgs.js";export{shuffle}from"./shuffle.js";export{sleep}from"./sleep.js";export{zenkakuAlphanumericalsToHankaku}from"./zenkaku.js";
|
|
1
|
+
export{errorify,ignoreEnoent,ignoreEnoentAsync,ignoreError,ignoreErrorAsync,withRetry}from"./error.js";export{humanizeNumber}from"./humanize.js";export{mailTemplates}from"./mail.js";export{parseCommandLineArgs}from"./parseCommandLineArgs.js";export{shuffle}from"./shuffle.js";export{sleep}from"./sleep.js";export{getConnectionLevelSqlitePragmas,getPersistentSqlitePragmas}from"./sqlite.js";export{zenkakuAlphanumericalsToHankaku}from"./zenkaku.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/sqlite.cjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";exports.getConnectionLevelSqlitePragmas=function(){return"PRAGMA busy_timeout = 5000; PRAGMA cache_size = -16000; PRAGMA synchronous = NORMAL; PRAGMA wal_autocheckpoint = 10000;"},exports.getPersistentSqlitePragmas=function(){return"PRAGMA journal_mode = WAL;"};
|
|
2
|
+
//# sourceMappingURL=sqlite.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sqlite.cjs","sources":["../src/sqlite.ts"],"sourcesContent":["export function getConnectionLevelSqlitePragmas(): string {\n // cf. https://github.com/benbjohnson/litestream/issues/724#issue-3367254318\n // cf. https://github.com/benbjohnson/litestream/blob/9bd72348b7e7b1b3b8cf1e8befbee3b2c17444f7/.claude/agents/performance-optimizer.md?plain=1#L225-L232\n return 'PRAGMA busy_timeout = 5000; PRAGMA cache_size = -16000; PRAGMA synchronous = NORMAL; PRAGMA wal_autocheckpoint = 10000;';\n}\n\nexport function getPersistentSqlitePragmas(): string {\n return 'PRAGMA journal_mode = WAL;';\n}\n"],"names":[],"mappings":"qDAAO,WAGL,MAAO,yHACT,qCAEO,WACL,MAAO,4BACT"}
|
package/dist/sqlite.d.ts
ADDED
package/dist/sqlite.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
function A(){return"PRAGMA busy_timeout = 5000; PRAGMA cache_size = -16000; PRAGMA synchronous = NORMAL; PRAGMA wal_autocheckpoint = 10000;"}function n(){return"PRAGMA journal_mode = WAL;"}export{A as getConnectionLevelSqlitePragmas,n as getPersistentSqlitePragmas};
|
|
2
|
+
//# sourceMappingURL=sqlite.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sqlite.js","sources":["../src/sqlite.ts"],"sourcesContent":["export function getConnectionLevelSqlitePragmas(): string {\n // cf. https://github.com/benbjohnson/litestream/issues/724#issue-3367254318\n // cf. https://github.com/benbjohnson/litestream/blob/9bd72348b7e7b1b3b8cf1e8befbee3b2c17444f7/.claude/agents/performance-optimizer.md?plain=1#L225-L232\n return 'PRAGMA busy_timeout = 5000; PRAGMA cache_size = -16000; PRAGMA synchronous = NORMAL; PRAGMA wal_autocheckpoint = 10000;';\n}\n\nexport function getPersistentSqlitePragmas(): string {\n return 'PRAGMA journal_mode = WAL;';\n}\n"],"names":["getConnectionLevelSqlitePragmas","getPersistentSqlitePragmas"],"mappings":"AAAO,SAASA,IAGd,MAAO,yHACT,CAEO,SAASC,IACd,MAAO,4BACT"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@willbooster/shared-lib",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.1",
|
|
4
4
|
"description": "Shared library for WillBooster projects",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"prettier-plugin-java": "2.7.7",
|
|
66
66
|
"sort-package-json": "3.5.0",
|
|
67
67
|
"typescript": "5.9.3",
|
|
68
|
-
"typescript-eslint": "8.
|
|
68
|
+
"typescript-eslint": "8.49.0",
|
|
69
69
|
"vitest": "4.0.10"
|
|
70
70
|
},
|
|
71
71
|
"publishConfig": {
|