@produck/duck-web-koa
Advanced tools
Comparing version 0.3.10 to 1.0.1
@@ -1,23 +0,18 @@ | ||
import Koa from 'koa'; | ||
import DuckWeb from '@produck/duck-web'; | ||
import * as Koa from 'koa'; | ||
import * as Duck from '@produck/duck'; | ||
import * as DuckWeb from '@produck/duck-web'; | ||
declare namespace DuckWebKoa { | ||
interface DuckWebKoaInjection extends DuckWeb.DuckWebApplicationInjection {} | ||
export interface KoaAppKit extends Duck.ProductKit { } | ||
interface KoaAppInstanceKit extends KoaAppKit { } | ||
type Plugin = (injection: DuckWebKoaInjection) => void; | ||
type Factory = (app: Koa, Kit: KoaAppInstanceKit) => void; | ||
export type Plugin = (Kit: KoaAppKit) => void; | ||
interface Options { | ||
plugins: Array<Plugin>, | ||
installed?: Function, | ||
} | ||
export function defineKoaApp( | ||
factory?: Factory, | ||
plugins?: Array<Plugin> | ||
): DuckWeb.Provider; | ||
type Assembler = ( | ||
app: Koa<Koa.DefaultState, Koa.DefaultContext>, | ||
injection: DuckWebKoaInjection, | ||
options?: Options | ||
) => void; | ||
} | ||
declare function DuckWebKoa(factory: DuckWebKoa.Assembler, options: DuckWebKoa.Options): DuckWeb.ApplicationProvider; | ||
export = DuckWebKoa; | ||
export const definePlugin: Duck.AnyDefiner<Plugin>; | ||
export { defineKoaApp as define }; | ||
export const DefaultFactory: Factory; |
{ | ||
"name": "@produck/duck-web-koa", | ||
"version": "0.3.10", | ||
"description": "", | ||
"keywords": [], | ||
"author": "ChaosLee <lichao@or-change.cn>", | ||
"license": "MIT", | ||
"main": "index.js", | ||
"files": [ | ||
"/src", | ||
"/index.js", | ||
"/index.d.ts" | ||
], | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/produck/duck.git" | ||
}, | ||
"scripts": { | ||
"test": "mocha" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/produck/duck/issues" | ||
}, | ||
"homepage": "https://github.com/produck/duck#readme", | ||
"devDependencies": { | ||
"@types/koa": "^2.13.1", | ||
"koa": "^2.13.1", | ||
"mocha": "^8.3.2" | ||
}, | ||
"dependencies": { | ||
"@produck/duck": "^0.6.5", | ||
"@produck/duck-web": "^0.2.9", | ||
"debug": "^4.3.1" | ||
}, | ||
"peerDependencies": { | ||
"koa": ">=2.11.0" | ||
}, | ||
"gitHead": "4e0e460e3b10bea3d8fdfe64818b3be6e814db04" | ||
"name": "@produck/duck-web-koa", | ||
"version": "1.0.1", | ||
"description": "", | ||
"keywords": [ | ||
"duck", | ||
"web", | ||
"koa" | ||
], | ||
"author": "chaoslee <chaos2lee@qq.com>", | ||
"license": "MIT", | ||
"main": "src/index.cjs", | ||
"type": "module", | ||
"exports": { | ||
"import": "./src/index.mjs", | ||
"require": "./src/index.cjs" | ||
}, | ||
"types": "index.d.ts", | ||
"files": [ | ||
"src", | ||
"index.d.ts", | ||
"tsconfig.json" | ||
], | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/produck/duck-workbench.git" | ||
}, | ||
"scripts": { | ||
"build": "rollup -c script/rollup.config.mjs", | ||
"prepublishOnly": " npm run build" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/produck/duck-workbench/issues" | ||
}, | ||
"homepage": "https://github.com/produck/duck-workbench#readme", | ||
"devDependencies": { | ||
"rollup": "^3.9.0", | ||
"supertest": "^6.3.3" | ||
}, | ||
"dependencies": { | ||
"@produck/duck": "^1.0.3", | ||
"@produck/duck-web": "^1.0.4", | ||
"@produck/mold": "^0.3.1", | ||
"@types/koa": "^2.13.5", | ||
"koa": "^2.14.1" | ||
}, | ||
"gitHead": "8ffdc827ca86c49525550aa62b68be952798b0f9" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
5883
2
8
118
0
1
12
Yes
5
1
+ Added@produck/mold@^0.3.1
+ Added@types/koa@^2.13.5
+ Addedkoa@^2.14.1
+ Added@produck/compose@0.1.11(transitive)
+ Added@produck/duck@1.1.3(transitive)
+ Added@produck/duck-web@1.1.4(transitive)
+ Added@produck/idiom@0.4.1(transitive)
+ Added@produck/kit@0.1.9(transitive)
+ Added@produck/mold@0.3.1(transitive)
+ Added@produck/ow@0.1.2(transitive)
+ Added@types/accepts@1.3.7(transitive)
+ Added@types/body-parser@1.19.5(transitive)
+ Added@types/connect@3.4.38(transitive)
+ Added@types/content-disposition@0.5.8(transitive)
+ Added@types/cookies@0.9.0(transitive)
+ Added@types/express@5.0.0(transitive)
+ Added@types/express-serve-static-core@5.0.4(transitive)
+ Added@types/http-assert@1.5.6(transitive)
+ Added@types/http-errors@2.0.4(transitive)
+ Added@types/keygrip@1.0.6(transitive)
+ Added@types/koa@2.15.0(transitive)
+ Added@types/koa-compose@3.2.8(transitive)
+ Added@types/mime@1.3.5(transitive)
+ Added@types/node@22.10.5(transitive)
+ Added@types/qs@6.9.17(transitive)
+ Added@types/range-parser@1.2.7(transitive)
+ Added@types/send@0.17.4(transitive)
+ Added@types/serve-static@1.15.7(transitive)
+ Addedsemver@7.6.3(transitive)
+ Addedundici-types@6.20.0(transitive)
- Removeddebug@^4.3.1
- Removed@produck/duck@0.6.5(transitive)
- Removed@produck/duck-web@0.2.9(transitive)
- Removedajv@8.17.1(transitive)
- Removedajv-keywords@5.1.0(transitive)
- Removedfast-deep-equal@3.1.3(transitive)
- Removedfast-uri@3.0.5(transitive)
- Removedjson-schema-traverse@1.0.0(transitive)
- Removedrequire-from-string@2.0.2(transitive)
Updated@produck/duck@^1.0.3
Updated@produck/duck-web@^1.0.4