Comparing version 0.10.1 to 0.11.0
@@ -0,1 +1,60 @@ | ||
# Change Log | ||
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
# 0.11.0 (2019-09-10) | ||
### Bug Fixes | ||
* catch test error ([a8d369f](https://github.com/waitingsong/kmore/commit/a8d369f)) | ||
* createDir() path resolve under linux ([62e5a2c](https://github.com/waitingsong/kmore/commit/62e5a2c)) | ||
* deps, peerDeps might empty ([e9c7396](https://github.com/waitingsong/kmore/commit/e9c7396)) | ||
* error TS1345: An expression of type 'void' cannot be tested for truthiness ([baef865](https://github.com/waitingsong/kmore/commit/baef865)) | ||
* options not covered within createFile() ([939c3af](https://github.com/waitingsong/kmore/commit/939c3af)) | ||
* path require parse by normalize() within createDir() ([5b2d01c](https://github.com/waitingsong/kmore/commit/5b2d01c)) | ||
* revert ts-node to '5.0.1' ([17aee68](https://github.com/waitingsong/kmore/commit/17aee68)) | ||
* rimraf() got "no such file or directory" if unlink a file ([b47f2f6](https://github.com/waitingsong/kmore/commit/b47f2f6)) | ||
* rimraf() rm folder ([4fc2e1b](https://github.com/waitingsong/kmore/commit/4fc2e1b)) | ||
* **tslint:** no-unused-variable rule ([23bec9d](https://github.com/waitingsong/kmore/commit/23bec9d)) | ||
* wrong variable within createFile() ([8e29a46](https://github.com/waitingsong/kmore/commit/8e29a46)) | ||
### Features | ||
* parameter of tables of kmore() supports value false ([ec2f43f](https://github.com/waitingsong/kmore/commit/ec2f43f)) | ||
* **build:** do not build esm.js default ([1645628](https://github.com/waitingsong/kmore/commit/1645628)) | ||
* add assertNever() ([268c690](https://github.com/waitingsong/kmore/commit/268c690)) | ||
* add assertNeverObb() ([3f90fa4](https://github.com/waitingsong/kmore/commit/3f90fa4)) | ||
* add isPathAcessible() ([7a388fb](https://github.com/waitingsong/kmore/commit/7a388fb)) | ||
* add lib/shared.ts ([3b8f645](https://github.com/waitingsong/kmore/commit/3b8f645)) | ||
* add logger() ([d0a638a](https://github.com/waitingsong/kmore/commit/d0a638a)) | ||
* supports BuildSrcOpts['baseDir'] be String ([a45f11b](https://github.com/waitingsong/kmore/commit/a45f11b)) | ||
* **types:** change BuildSrcOpts extends Partial<Options> ([35becb0](https://github.com/waitingsong/kmore/commit/35becb0)) | ||
* add Observable functions ([2b1fabd](https://github.com/waitingsong/kmore/commit/2b1fabd)) | ||
* build tables from ts types ([760b5b7](https://github.com/waitingsong/kmore/commit/760b5b7)) | ||
* change logger() to accept more args ([3b7d771](https://github.com/waitingsong/kmore/commit/3b7d771)) | ||
* compile output bundle file without minify ([f9f92f2](https://github.com/waitingsong/kmore/commit/f9f92f2)) | ||
* do isPathAccessible() first within isDirFileExists() ([ca4b1a2](https://github.com/waitingsong/kmore/commit/ca4b1a2)) | ||
* export basename() from shared ([94f6313](https://github.com/waitingsong/kmore/commit/94f6313)) | ||
* export dirname() ([9d54af9](https://github.com/waitingsong/kmore/commit/9d54af9)) | ||
* export native assert() ([67d33bc](https://github.com/waitingsong/kmore/commit/67d33bc)) | ||
* export os.tmpdir() ([c9cec63](https://github.com/waitingsong/kmore/commit/c9cec63)) | ||
* export rmdirAsync() and rimraf() ([258ce98](https://github.com/waitingsong/kmore/commit/258ce98)) | ||
* export statAsync ([5026a79](https://github.com/waitingsong/kmore/commit/5026a79)) | ||
* output esm.min.js ([9e46e0f](https://github.com/waitingsong/kmore/commit/9e46e0f)) | ||
* parse peerDependencies as external ([67a9e05](https://github.com/waitingsong/kmore/commit/67a9e05)) | ||
* parseUMDName() ([132a274](https://github.com/waitingsong/kmore/commit/132a274)) | ||
* remove log() and logger() ([c20e958](https://github.com/waitingsong/kmore/commit/c20e958)) | ||
### Reverts | ||
* wrong tslib remove ([55c1ff2](https://github.com/waitingsong/kmore/commit/55c1ff2)) | ||
# Changelog | ||
@@ -5,4 +64,2 @@ | ||
### [0.10.1](https://github.com/waitingsong/kmore/compare/v0.10.0...v0.10.1) (2019-09-06) | ||
## [0.10.0](https://github.com/waitingsong/kmore/compare/v0.9.0...v0.10.0) (2019-08-16) | ||
@@ -9,0 +66,0 @@ |
@@ -5,3 +5,3 @@ /** | ||
* | ||
* @version 0.10.1 | ||
* @version 0.10.0 | ||
* @author waiting | ||
@@ -73,3 +73,4 @@ * @license MIT | ||
const opts = options | ||
? Object.assign({}, kmoreTypes.initOptions, options) : Object.assign({}, kmoreTypes.initOptions); | ||
? { ...kmoreTypes.initOptions, ...options } | ||
: { ...kmoreTypes.initOptions }; | ||
let tbs = {}; | ||
@@ -82,3 +83,3 @@ if (typeof tables === 'undefined' || tables === null) { | ||
else { | ||
tbs = tables ? Object.assign({}, tables) : kmoreTypes.createNullObject(); | ||
tbs = tables ? { ...tables } : kmoreTypes.createNullObject(); | ||
} | ||
@@ -92,3 +93,6 @@ let db = kmoreTypes.createNullObject(); | ||
function bindDbh(propDescriptor, db, config) { | ||
Object.defineProperty(db, DbPropKeys.dbh, Object.assign({}, propDescriptor, { value: _Knex(config) })); | ||
Object.defineProperty(db, DbPropKeys.dbh, { | ||
...propDescriptor, | ||
value: _Knex(config), | ||
}); | ||
return db; | ||
@@ -98,3 +102,6 @@ } | ||
kmoreTypes.validateParamTables(tables); | ||
Object.defineProperty(db, DbPropKeys.tables, Object.assign({}, propDescriptor, { value: tables })); | ||
Object.defineProperty(db, DbPropKeys.tables, { | ||
...propDescriptor, | ||
value: tables, | ||
}); | ||
return db; | ||
@@ -104,8 +111,17 @@ } | ||
const rb = kmoreTypes.createNullObject(); | ||
Object.defineProperty(db, DbPropKeys.refTables, Object.assign({}, propDescriptor, { value: rb })); | ||
Object.defineProperty(db, DbPropKeys.refTables, { | ||
...propDescriptor, | ||
value: rb, | ||
}); | ||
if (db.tables) { | ||
Object.keys(db.tables).forEach((refName) => { | ||
Object.defineProperty(rb, refName, Object.assign({}, propDescriptor, { value: () => db.dbh(refName) })); | ||
Object.defineProperty(rb, refName, { | ||
...propDescriptor, | ||
value: () => db.dbh(refName), | ||
}); | ||
// @ts-ignore | ||
Object.defineProperty(rb[refName], 'name', Object.assign({}, propDescriptor, { value: `${options.refTablesPrefix}${refName}` })); | ||
Object.defineProperty(rb[refName], 'name', { | ||
...propDescriptor, | ||
value: `${options.refTablesPrefix}${refName}`, | ||
}); | ||
}); | ||
@@ -112,0 +128,0 @@ } |
export * from './lib/index'; | ||
export { genTbListFromType } from 'kmore-types'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsY0FBYyxhQUFhLENBQUE7QUFHM0IsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sYUFBYSxDQUFBIn0= |
@@ -14,1 +14,2 @@ export { globalCallerFuncNameSet } from 'kmore-types'; | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2xpYi9jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLHVCQUF1QixFQUFFLE1BQU0sYUFBYSxDQUFBO0FBRXJELE9BQU8sRUFDTCxRQUFRLEVBQ1IsZ0JBQWdCLEVBQ2hCLHlCQUF5QixFQUN6QixXQUFXLEdBQ1osTUFBTSxhQUFhLENBQUE7QUFFcEIsTUFBTSxDQUFOLElBQVksVUFJWDtBQUpELFdBQVksVUFBVTtJQUNwQix5QkFBYSxDQUFBO0lBQ2IsK0JBQW1CLENBQUE7SUFDbkIsOEJBQWtCLENBQUE7QUFDcEIsQ0FBQyxFQUpXLFVBQVUsS0FBVixVQUFVLFFBSXJCO0FBRUQsTUFBTSxDQUFDLE1BQU0scUJBQXFCLEdBQXVCO0lBQ3ZELFlBQVksRUFBRSxLQUFLO0lBQ25CLFVBQVUsRUFBRSxJQUFJO0lBQ2hCLFFBQVEsRUFBRSxLQUFLO0NBQ1AsQ0FBQSJ9 |
@@ -25,3 +25,4 @@ // eslint-disable-next-line import/no-extraneous-dependencies | ||
const opts = options | ||
? Object.assign({}, initOptions, options) : Object.assign({}, initOptions); | ||
? { ...initOptions, ...options } | ||
: { ...initOptions }; | ||
let tbs = {}; | ||
@@ -34,3 +35,3 @@ if (typeof tables === 'undefined' || tables === null) { | ||
else { | ||
tbs = tables ? Object.assign({}, tables) : createNullObject(); | ||
tbs = tables ? { ...tables } : createNullObject(); | ||
} | ||
@@ -44,3 +45,6 @@ let db = createNullObject(); | ||
function bindDbh(propDescriptor, db, config) { | ||
Object.defineProperty(db, DbPropKeys.dbh, Object.assign({}, propDescriptor, { value: _Knex(config) })); | ||
Object.defineProperty(db, DbPropKeys.dbh, { | ||
...propDescriptor, | ||
value: _Knex(config), | ||
}); | ||
return db; | ||
@@ -50,3 +54,6 @@ } | ||
validateParamTables(tables); | ||
Object.defineProperty(db, DbPropKeys.tables, Object.assign({}, propDescriptor, { value: tables })); | ||
Object.defineProperty(db, DbPropKeys.tables, { | ||
...propDescriptor, | ||
value: tables, | ||
}); | ||
return db; | ||
@@ -56,8 +63,17 @@ } | ||
const rb = createNullObject(); | ||
Object.defineProperty(db, DbPropKeys.refTables, Object.assign({}, propDescriptor, { value: rb })); | ||
Object.defineProperty(db, DbPropKeys.refTables, { | ||
...propDescriptor, | ||
value: rb, | ||
}); | ||
if (db.tables) { | ||
Object.keys(db.tables).forEach((refName) => { | ||
Object.defineProperty(rb, refName, Object.assign({}, propDescriptor, { value: () => db.dbh(refName) })); | ||
Object.defineProperty(rb, refName, { | ||
...propDescriptor, | ||
value: () => db.dbh(refName), | ||
}); | ||
// @ts-ignore | ||
Object.defineProperty(rb[refName], 'name', Object.assign({}, propDescriptor, { value: `${options.refTablesPrefix}${refName}` })); | ||
Object.defineProperty(rb[refName], 'name', { | ||
...propDescriptor, | ||
value: `${options.refTablesP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yxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQyxJQUFJLG9CQUFvQixLQUFLLENBQUE7SUFDbkUsSUFBSSxHQUFHLGtCQUFrQixDQUFDLElBQUksRUFBRSxpQ0FBaUMsQ0FBQyxDQUFBO0lBRWxFLFVBQVUsQ0FBQyxJQUFJLEVBQUUsU0FBUyxDQUFDLElBQUksQ0FBQyxDQUFBO0lBRWhDLE1BQU0sR0FBRyxHQUFHLGVBQWUsQ0FBSSxJQUFJLEVBQUUsTUFBTSxFQUFFLE9BQU8sQ0FBQyxDQUFBO0lBQ3JELE9BQU8sR0FBRyxDQUFBO0FBQ1osQ0FBQyJ9 |
107
package.json
{ | ||
"name": "kmore", | ||
"author": "waiting", | ||
"version": "0.10.1", | ||
"version": "0.11.0", | ||
"description": "A Knex little more factory of SQL query builder, with auto-generated type-safe tables accessor for Node.js", | ||
@@ -19,5 +19,2 @@ "keywords": [ | ||
], | ||
"engines": { | ||
"node": ">=10.13.0" | ||
}, | ||
"bin": {}, | ||
@@ -38,76 +35,25 @@ "browser": "", | ||
"license": "MIT", | ||
"nyc": { | ||
"exclude": [ | ||
"**/*.js", | ||
"**/*.test.ts", | ||
"**/*.d.ts", | ||
".githooks", | ||
"dist", | ||
"node_modules*", | ||
"src/bin", | ||
"test*" | ||
], | ||
"extension": [ | ||
".ts", | ||
".tsx" | ||
], | ||
"reporter": [ | ||
"text-summary", | ||
"html" | ||
], | ||
"all": true | ||
}, | ||
"dependencies": { | ||
"kmore-types": "^0.7.0" | ||
"@waiting/shared-types": "1", | ||
"kmore-types": "^0.11.0" | ||
}, | ||
"devDependencies": { | ||
"@types/mocha": "*", | ||
"@types/node": "*", | ||
"@types/power-assert": "*", | ||
"@types/rewire": "*", | ||
"@types/rimraf": "*", | ||
"@types/yargs": "^13.0.0", | ||
"@waiting/eslint-config": "^2.1.0", | ||
"coveralls": "^3.0.5", | ||
"cross-env": "^5.2.0", | ||
"eslint": "^6.2.0", | ||
"espower-typescript": "^9.0.2", | ||
"intelli-espower-loader": "^1.0.1", | ||
"@waiting/shared-core": "3", | ||
"cross-env": "5", | ||
"knex": "^0.19.0", | ||
"mocha": "^6.1.4", | ||
"mocha-lcov-reporter": "^1.3.0", | ||
"nyc": "^14.1.1", | ||
"pg": "^7.11.0", | ||
"power-assert": ">=1.5", | ||
"rewire": "^4.0.0", | ||
"rimraf": "^3.0.0", | ||
"rollup-plugin-commonjs": "^10.0.0", | ||
"rollup-plugin-node-resolve": "^5.0.1", | ||
"rollup-plugin-terser": "^5.0.0", | ||
"rxrunscript": "^5.2.0", | ||
"ts-node": "^8.3.0", | ||
"typescript": "^3.5.0", | ||
"yargs": "^14.0.0" | ||
"pg": "^7.11.0" | ||
}, | ||
"peerDependencies": { | ||
"knex": ">=0.15.0", | ||
"typescript": "^3.5.0" | ||
"typescript": "3" | ||
}, | ||
"engines": { | ||
"node": ">=10.16.0" | ||
}, | ||
"scripts": { | ||
"bp:add": "git remote add bp https://github.com/waitingsong/npm-base", | ||
"bp:sync": "git fetch --all -v && git merge bp/master -m \"Merge remote-tracking branch 'bp/master'\"", | ||
"build": "npm run lint && npm run tsc && npm run rp", | ||
"devbuild": "npm run clean && npm run tsc:dev && npm run rp", | ||
"devbuild": "npm run tsc && npm run rp", | ||
"clean": "rm -rf dist/* .vscode/.tsbuildinfo .vscode/.tsbuildinfo.* ", | ||
"cov": "cross-env TS_NODE_PROJECT=test/tsconfig.json nyc mocha", | ||
"cov:coveralls": "cross-env TS_NODE_PROJECT=test/tsconfig.json nyc mocha && nyc report --reporter=text-lcov | coveralls", | ||
"doc": "typedoc src/index.ts src/lib/index.ts src/lib/model.ts", | ||
"jslint": "eslint --fix dist/**/*.js", | ||
"link_global": "npm link typescript", | ||
"lint": "eslint --fix {src,test}/**/*.ts", | ||
"postpublish": "git push origin --follow-tags", | ||
"prepublishOnly": "npm run clean && npm run build", | ||
"release": "standard-version -r", | ||
"release:first": "standard-version --first-release", | ||
"repo:init": "sh .githooks/init-repo.sh", | ||
"rp": "rollup -c rollup.config.js", | ||
@@ -117,7 +63,32 @@ "rp:w": "npm run tsc:w | rollup -wc rollup.config.js", | ||
"test:browser": "cd .config && npm run browser && cd ..", | ||
"browser:debug": "cd .config && npm run debug && cd ..", | ||
"tsc": "tsc -p tsconfig.json", | ||
"tsc:dev": "tsc -p tsconfig.dev.json", | ||
"tsc:w": "tsc -p tsconfig.json -w" | ||
} | ||
}, | ||
"nyc": { | ||
"include": [ | ||
"src/**/*.ts" | ||
], | ||
"exclude": [ | ||
".githooks", | ||
"dist", | ||
"node_modules*", | ||
"src/bin", | ||
"src/domain.ts", | ||
"src/interface.ts", | ||
"test*", | ||
"**/node_modules*", | ||
"**/*.d.ts", | ||
"**/*.js" | ||
], | ||
"extension": [ | ||
".ts" | ||
], | ||
"reporter": [ | ||
"text-summary", | ||
"json", | ||
"html" | ||
], | ||
"all": true | ||
}, | ||
"gitHead": "7696bcbbbbbe5f77ef68fb97871dbc2d3cfcee4f" | ||
} |
@@ -7,3 +7,3 @@ # [kmore](https://waitingsong.github.io/kmore/) | ||
[![Version](https://img.shields.io/npm/v/kmore.svg)](https://www.npmjs.com/package/kmore) | ||
[![GitHub tag](https://img.shields.io/github/tag/waitingsong/kmore.svg)]() | ||
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT) | ||
@@ -15,2 +15,3 @@ ![](https://img.shields.io/badge/lang-TypeScript-blue.svg) | ||
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org) | ||
[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lernajs.io/) | ||
@@ -159,2 +160,16 @@ | ||
## Packages | ||
kmore is comprised of many specialized packages. | ||
This repository contains all these packages. Below you will find a summary of each package. | ||
| Package | Version | Dependencies | DevDependencies | | ||
| --------------- | -------------------------- | -------------------------------- | ---------------------------------- | | ||
| [`kmore`] | [![][kmore-svg]][kmore-ch] | [![][kmore-d-svg]][kmore-d-link] | [![][kmore-dd-svg]][kmore-dd-link] | | ||
| [`kmore-types`] | [![][types-svg]][types-ch] | [![][types-d-svg]][types-d-link] | [![][types-dd-svg]][types-dd-link] | | ||
| [`kmore-cli`] | [![][cli-svg]][cli-ch] | [![][cli-d-svg]][cli-d-link] | [![][cli-dd-svg]][cli-dd-link] | | ||
| [`egg-kmore`] | [![][egg-svg]][egg-ch] | [![][egg-d-svg]][egg-d-link] | [![][egg-dd-svg]][egg-dd-link] | | ||
## License | ||
@@ -167,1 +182,36 @@ [MIT](LICENSE) | ||
- [中文](README.zh-CN.md) | ||
[`kmore`]: https://github.com/waitingsong/kmore/tree/master/packages/kmore | ||
[`kmore-types`]: https://github.com/waitingsong/kmore/tree/master/packages/kmore-types | ||
[`kmore-cli`]: https://github.com/waitingsong/kmore/tree/master/packages/kmore-cli | ||
[`egg-kmore`]: https://github.com/waitingsong/kmore/tree/master/packages/egg-kmore | ||
[kmore-svg]: https://img.shields.io/npm/v/kmore.svg?maxAge=86400 | ||
[kmore-ch]: https://github.com/waitingsong/kmore/tree/master/packages/kmore/CHANGELOG.md | ||
[kmore-d-svg]: https://david-dm.org/waitingsong/kmore.svg?path=packages/kmore | ||
[kmore-d-link]: https://david-dm.org/waitingsong/kmore.svg?path=packages/kmore | ||
[kmore-dd-svg]: https://david-dm.org/waitingsong/kmore/dev-status.svg?path=packages/kmore | ||
[kmore-dd-link]: https://david-dm.org/waitingsong/kmore?path=packages/kmore#info=devDependencies | ||
[types-svg]: https://img.shields.io/npm/v/kmore-types.svg?maxAge=86400 | ||
[types-ch]: https://github.com/waitingsong/kmore/tree/master/packages/kmore-types/CHANGELOG.md | ||
[types-d-svg]: https://david-dm.org/waitingsong/kmore.svg?path=packages/kmore-types | ||
[types-d-link]: https://david-dm.org/waitingsong/kmore.svg?path=packages/kmore-types | ||
[types-dd-svg]: https://david-dm.org/waitingsong/kmore/dev-status.svg?path=packages/kmore-types | ||
[types-dd-link]: https://david-dm.org/waitingsong/kmore?path=packages/kmore-types#info=devDependencies | ||
[cli-svg]: https://img.shields.io/npm/v/kmore-cli.svg?maxAge=86400 | ||
[cli-ch]: https://github.com/waitingsong/kmore/tree/master/packages/kmore-clie/CHANGELOG.md | ||
[cli-d-svg]: https://david-dm.org/waitingsong/kmore.svg?path=packages/kmore-cli | ||
[cli-d-link]: https://david-dm.org/waitingsong/kmore.svg?path=packages/kmore-cli | ||
[cli-dd-svg]: https://david-dm.org/waitingsong/kmore/dev-status.svg?path=packages/kmore-cli | ||
[cli-dd-link]: https://david-dm.org/waitingsong/kmore?path=packages/kmore-cli#info=devDependencies | ||
[egg-svg]: https://img.shields.io/npm/v/egg-kmore.svg?maxAge=86400 | ||
[egg-ch]: https://github.com/waitingsong/kmore/tree/master/packages/egg-kmore/CHANGELOG.md | ||
[egg-d-svg]: https://david-dm.org/waitingsong/kmore.svg?path=packages/egg-kmore | ||
[egg-d-link]: https://david-dm.org/waitingsong/kmore.svg?path=packages/egg-kmore | ||
[egg-dd-svg]: https://david-dm.org/waitingsong/kmore/dev-status.svg?path=packages/egg-kmore | ||
[egg-dd-link]: https://david-dm.org/waitingsong/kmore?path=packages/egg-kmore#info=devDependencies |
@@ -8,3 +8,3 @@ # [kmore](https://waitingsong.github.io/kmore/) | ||
[![Version](https://img.shields.io/npm/v/kmore.svg)](https://www.npmjs.com/package/kmore) | ||
[![GitHub tag](https://img.shields.io/github/tag/waitingsong/kmore.svg)]() | ||
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT) | ||
@@ -16,4 +16,4 @@ ![](https://img.shields.io/badge/lang-TypeScript-blue.svg) | ||
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org) | ||
[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lernajs.io/) | ||
## 安装 | ||
@@ -160,2 +160,16 @@ ```sh | ||
## Packages | ||
kmore is comprised of many specialized packages. | ||
This repository contains all these packages. Below you will find a summary of each package. | ||
| Package | Version | Dependencies | DevDependencies | | ||
| --------------- | -------------------------- | -------------------------------- | ---------------------------------- | | ||
| [`kmore`] | [![][kmore-svg]][kmore-ch] | [![][kmore-d-svg]][kmore-d-link] | [![][kmore-dd-svg]][kmore-dd-link] | | ||
| [`kmore-types`] | [![][types-svg]][types-ch] | [![][types-d-svg]][types-d-link] | [![][types-dd-svg]][types-dd-link] | | ||
| [`kmore-cli`] | [![][cli-svg]][cli-ch] | [![][cli-d-svg]][cli-d-link] | [![][cli-dd-svg]][cli-dd-link] | | ||
| [`egg-kmore`] | [![][egg-svg]][egg-ch] | [![][egg-d-svg]][egg-d-link] | [![][egg-dd-svg]][egg-dd-link] | | ||
## License | ||
@@ -168,1 +182,36 @@ [MIT](LICENSE) | ||
- [中文](README.zh-CN.md) | ||
[`kmore`]: https://github.com/waitingsong/kmore/tree/master/packages/kmore | ||
[`kmore-types`]: https://github.com/waitingsong/kmore/tree/master/packages/kmore-types | ||
[`kmore-cli`]: https://github.com/waitingsong/kmore/tree/master/packages/kmore-cli | ||
[`egg-kmore`]: https://github.com/waitingsong/kmore/tree/master/packages/egg-kmore | ||
[kmore-svg]: https://img.shields.io/npm/v/kmore.svg?maxAge=86400 | ||
[kmore-ch]: https://github.com/waitingsong/kmore/tree/master/packages/kmore/CHANGELOG.md | ||
[kmore-d-svg]: https://david-dm.org/waitingsong/kmore.svg?path=packages/kmore | ||
[kmore-d-link]: https://david-dm.org/waitingsong/kmore.svg?path=packages/kmore | ||
[kmore-dd-svg]: https://david-dm.org/waitingsong/kmore/dev-status.svg?path=packages/kmore | ||
[kmore-dd-link]: https://david-dm.org/waitingsong/kmore?path=packages/kmore#info=devDependencies | ||
[types-svg]: https://img.shields.io/npm/v/kmore-types.svg?maxAge=86400 | ||
[types-ch]: https://github.com/waitingsong/kmore/tree/master/packages/kmore-types/CHANGELOG.md | ||
[types-d-svg]: https://david-dm.org/waitingsong/kmore.svg?path=packages/kmore-types | ||
[types-d-link]: https://david-dm.org/waitingsong/kmore.svg?path=packages/kmore-types | ||
[types-dd-svg]: https://david-dm.org/waitingsong/kmore/dev-status.svg?path=packages/kmore-types | ||
[types-dd-link]: https://david-dm.org/waitingsong/kmore?path=packages/kmore-types#info=devDependencies | ||
[cli-svg]: https://img.shields.io/npm/v/kmore-cli.svg?maxAge=86400 | ||
[cli-ch]: https://github.com/waitingsong/kmore/tree/master/packages/kmore-clie/CHANGELOG.md | ||
[cli-d-svg]: https://david-dm.org/waitingsong/kmore.svg?path=packages/kmore-cli | ||
[cli-d-link]: https://david-dm.org/waitingsong/kmore.svg?path=packages/kmore-cli | ||
[cli-dd-svg]: https://david-dm.org/waitingsong/kmore/dev-status.svg?path=packages/kmore-cli | ||
[cli-dd-link]: https://david-dm.org/waitingsong/kmore?path=packages/kmore-cli#info=devDependencies | ||
[egg-svg]: https://img.shields.io/npm/v/egg-kmore.svg?maxAge=86400 | ||
[egg-ch]: https://github.com/waitingsong/kmore/tree/master/packages/egg-kmore/CHANGELOG.md | ||
[egg-d-svg]: https://david-dm.org/waitingsong/kmore.svg?path=packages/egg-kmore | ||
[egg-d-link]: https://david-dm.org/waitingsong/kmore.svg?path=packages/egg-kmore | ||
[egg-dd-svg]: https://david-dm.org/waitingsong/kmore/dev-status.svg?path=packages/egg-kmore | ||
[egg-dd-link]: https://david-dm.org/waitingsong/kmore?path=packages/egg-kmore#info=devDependencies |
Sorry, the diff of this file is not supported yet
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
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
53800
4
303
214
4
+ Added@waiting/shared-types@1
+ Added@waiting/shared-core@3.5.1(transitive)
+ Added@waiting/shared-types@1.1.03.5.1(transitive)
+ Addedkmore-types@0.11.2(transitive)
- Removed@waiting/shared-core@2.2.0(transitive)
- Removedkmore-types@0.7.0(transitive)
Updatedkmore-types@^0.11.0