Page MenuHomeSealhub

No OneTemporary

diff --git a/package.json b/package.json
index 03f5c57..b4cbc5e 100644
--- a/package.json
+++ b/package.json
@@ -1,61 +1,61 @@
{
"name": "@sealcode/jdd",
- "version": "0.6.4-beta1",
+ "version": "0.6.4-beta2",
"description": "JSON-Driven Documents",
"main": "lib/index.js",
"type": "module",
"scripts": {
"pretest": "npm run build",
"test": "node test.cjs",
"prebuild": "npm run lint",
"build": "tsc",
"typecheck": "tsc --noemit",
"prepare": "npm run build",
"lint": "eslint src",
"preinstrument": "npm run build && rm -fr .xunit coverage lib-instrumented",
"instrument": "npx nyc instrument --exclude \"\" lib lib-instrumented",
"pretest-reports": "npm run instrument",
"test-reports": "npx nyc --exclude \"\" ./node_modules/.bin/mocha --recursive --timeout=10000 --require source-map-support/register --reporter xunit --reporter-option output=.xunit 'lib-instrumented/**/*.test.js' && nyc report --reporter clover --exclude \"\"",
"precover-html": "rm -rf coverate/lcov-report",
"cover-html": "npm run test-reports && nyc report --reporter lcov --exclude \"\" && xdg-open coverage/lcov-report/index.html"
},
"author": "",
"license": "ISC",
"devDependencies": {
"@types/mocha": "^10.0.1",
"@types/prettier": "^2.7.0",
"@types/slug": "^5.0.9",
"@types/uuid": "^9.0.8",
"@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.58.0",
"assert": "^2.0.0",
"eslint": "^8.38.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-with-tsc-error": "^0.0.8",
"mocha": "^10.2.0",
"nyc": "^15.1.0",
"source-map-support": "^0.5.21",
"ts-node": "^10.9.1",
"typescript": "^5.0.4"
},
"types": "./@types/index.d.ts",
"dependencies": {
"@sealcode/file-manager": "^1.0.2",
"@sealcode/ts-predicates": "^0.5.3",
"escape-goat": "^4.0.0",
"html-entities": "^2.5.2",
"hyphenopoly": "^5.3.0",
"koa-responsive-image-router": "^0.2.29",
"locreq": "^3.0.0",
"marked": "^12.0.0",
"mri": "^1.2.0",
"prettier": "^2.7.1",
"slug": "^9.1.0",
"tempstream": "^0.4.1",
"uuid": "^9.0.1"
},
"peerDependencies": {
"sealious": "^0.19.29"
}
}
diff --git a/src/index.ts b/src/index.ts
index a273a16..9338245 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -1,24 +1,24 @@
export * from "./component.js";
export * from "./component-arguments/component-argument.js";
export * as ComponentArguments from "./component-arguments/component-arguments.js";
export * from "./component-arguments/component-arguments.js"; // exporting this also as root elements to make it easier to auto-import those
export * from "./jdd-context.js";
export * from "./registry.js";
export { insert_nbsp } from "./utils/insert_nbsp.js";
export * from "./document.js";
export * from "./jdd.js";
import type * as Koa from "koa";
import type * as Sealious from "sealious";
declare module "koa" {
interface BaseContext {
$context: Sealious.Context;
- $app: Sealious.App;
+ // omitting $app, as it needs to be assigned in the final repo, with TheApp
$body: Record<string, unknown>;
$cache: <T>(
key: string,
getter: (ctx: Koa.Context) => Promise<T>
) => Promise<T>;
}
}

File Metadata

Mime Type
text/x-diff
Expires
Sun, Nov 24, 02:42 (16 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
548114
Default Alt Text
(3 KB)

Event Timeline