Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@produck/duck-web-koa

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@produck/duck-web-koa - npm Package Compare versions

Comparing version 0.3.10 to 1.0.1

LICENSE

33

index.d.ts

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc