Socket
Socket
Sign inDemoInstall

egg-ts-helper

Package Overview
Dependencies
Maintainers
2
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

egg-ts-helper - npm Package Compare versions

Comparing version 1.33.0 to 1.33.1

src/bin.ts

10

dist/core.d.ts

@@ -35,3 +35,3 @@ /// <reference types="node" />

}
export declare type TsHelperConfig = typeof defaultConfig & {
export type TsHelperConfig = typeof defaultConfig & {
id: string;

@@ -42,3 +42,3 @@ eggInfo: utils.EggInfoResult;

};
export declare type TsGenConfig = {
export type TsGenConfig = {
name: string;

@@ -54,5 +54,5 @@ dir: string;

}
declare type GeneratorAllResult = GeneratorResult | GeneratorResult[];
declare type GeneratorCbResult<T> = T | Promise<T>;
export declare type TsGenerator<T = GeneratorAllResult | void> = ((config: TsGenConfig, baseConfig: TsHelperConfig, tsHelper: TsHelper) => GeneratorCbResult<T>) & {
type GeneratorAllResult = GeneratorResult | GeneratorResult[];
type GeneratorCbResult<T> = T | Promise<T>;
export type TsGenerator<T = GeneratorAllResult | void> = ((config: TsGenConfig, baseConfig: TsHelperConfig, tsHelper: TsHelper) => GeneratorCbResult<T>) & {
defaultConfig?: WatchItem;

@@ -59,0 +59,0 @@ };

@@ -11,3 +11,3 @@ import ConfigGenerator from './generators/config';

import { BaseGenerator } from './generators/base';
declare type GeneratorKlass = {
type GeneratorKlass = {
new (...args: any[]): BaseGenerator;

@@ -14,0 +14,0 @@ };

@@ -8,5 +8,5 @@ import TsHelper, { TsHelperOption } from './core';

constructor(options?: RegisterOption);
init(options?: TsHelperOption): void;
init(options?: TsHelperOption): any;
}
export { Register };
//# sourceMappingURL=register.d.ts.map

@@ -76,4 +76,4 @@ import ts from 'typescript';

};
export declare function modifierHas(node: ts.Node, kind: any): ts.Modifier | undefined;
export declare function modifierHas(node: ts.Node, kind: any): ts.ModifierLike | undefined;
export declare function cleanEmpty(data: any): {};
//# sourceMappingURL=utils.d.ts.map

@@ -230,3 +230,3 @@ "use strict";

globby_1.default
.sync(['**/*.ts', '**/*.tsx', '!**/*.d.ts', '!**/node_modules'], { cwd })
.sync(['**/*.ts', '**/*.tsx', '!**/*.d.ts', '!**/node_modules', '!**/.sff'], { cwd })
.forEach(f => {

@@ -233,0 +233,0 @@ const jf = removeSameNameJs(path_1.default.resolve(cwd, f));

{
"name": "egg-ts-helper",
"version": "1.33.0",
"version": "1.33.1",
"description": "egg typescript helper",

@@ -10,5 +10,10 @@ "bin": {

"types": "dist/index.d.ts",
"files": [
"src",
"dist",
"register.js"
],
"repository": {
"type": "git",
"url": "git@github.com:whxaxes/egg-ts-helper.git"
"url": "git@github.com:eggjs/egg-ts-helper.git"
},

@@ -31,6 +36,2 @@ "scripts": {

],
"files": [
"dist",
"register.js"
],
"author": "wanghx",

@@ -43,3 +44,3 @@ "license": "MIT",

"commander": "^2.15.1",
"debug": "^3.1.0",
"debug": "^4.3.4",
"dot-prop": "^4.2.0",

@@ -55,26 +56,24 @@ "enquirer": "^2.3.0",

},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"devDependencies": {
"@eggjs/tsconfig": "^1.0.0",
"@types/commander": "^2.12.2",
"@types/debug": "^0.0.30",
"@types/del": "^3.0.0",
"@types/globby": "^6.1.0",
"@types/mkdirp": "^0.5.2",
"@types/mocha": "^5.0.0",
"@types/mocha": "^10.0.0",
"@types/node": "^9.4.5",
"@types/power-assert": "^1.4.29",
"del": "^3.0.0",
"del-cli": "^1.1.0",
"egg": "^2.10.0",
"egg-bin": "^4.3.7",
"egg-mock": "^3.21.0",
"egg": "^3.5.0",
"egg-bin": "^5.5.0",
"egg-mock": "^5.2.1",
"egg-sequelize": "^4.3.1",
"eslint": "^8.0.0",
"eslint-config-egg": "^11.0.0",
"eslint": "^8.28.0",
"eslint-config-egg": "^12.1.0",
"extend2": "^1.0.0",
"runscript": "^1.3.0"
},
"engines": {
"node": ">= 14.0.0"
}
}
# egg-ts-helper
[![NPM version][npm-image]][npm-url]
[![Node.js CI](https://github.com/eggjs/egg-ts-helper/actions/workflows/nodejs.yml/badge.svg)](https://github.com/eggjs/egg-ts-helper/actions/workflows/nodejs.yml)
[![Package Quality](http://npm.packagequality.com/shield/egg-ts-helper.svg)](http://packagequality.com/#?package=egg-ts-helper)
[![Build Status][travis-image]][travis-url]
[![Appveyor status][appveyor-image]][appveyor-url]
[![Test coverage][codecov-image]][codecov-url]

@@ -12,6 +11,2 @@ [![NPM download][download-image]][download-url]

[npm-url]: https://npmjs.org/package/egg-ts-helper
[travis-url]: https://travis-ci.org/whxaxes/egg-ts-helper
[travis-image]: http://img.shields.io/travis/whxaxes/egg-ts-helper.svg
[appveyor-url]: https://ci.appveyor.com/project/whxaxes/egg-ts-helper/branch/master
[appveyor-image]: https://ci.appveyor.com/api/projects/status/github/whxaxes/egg-ts-helper?branch=master&svg=true
[codecov-image]: https://codecov.io/gh/whxaxes/egg-ts-helper/branch/master/graph/badge.svg

@@ -21,3 +16,2 @@ [codecov-url]: https://codecov.io/gh/whxaxes/egg-ts-helper

[download-url]: https://npmjs.org/package/egg-ts-helper
[easter-image]: https://img.shields.io/badge/easter%20egg-none-brightgreen.svg?style=flat-square

@@ -549,1 +543,5 @@ A simple tool for creating `d.ts` in [egg](https://eggjs.org) application. Injecting `controller, proxy, service, etc.` to definition type of egg ( such as `Context` `Application` etc. ) by [Declaration Merging](https://www.typescriptlang.org/docs/handbook/declaration-merging.html), and making IntelliSense works in both egg-js and egg-ts.

JS demo: https://github.com/whxaxes/egg-boilerplate-d-js
## License
[MIT](LICENSE)
# egg-ts-helper
[![NPM version][npm-image]][npm-url]
[![Node.js CI](https://github.com/eggjs/egg-ts-helper/actions/workflows/nodejs.yml/badge.svg)](https://github.com/eggjs/egg-ts-helper/actions/workflows/nodejs.yml)
[![Package Quality](http://npm.packagequality.com/shield/egg-ts-helper.svg)](http://packagequality.com/#?package=egg-ts-helper)
[![Build Status][travis-image]][travis-url]
[![Appveyor status][appveyor-image]][appveyor-url]
[![Test coverage][codecov-image]][codecov-url]

@@ -12,6 +11,2 @@ [![NPM download][download-image]][download-url]

[npm-url]: https://npmjs.org/package/egg-ts-helper
[travis-url]: https://travis-ci.org/whxaxes/egg-ts-helper
[travis-image]: http://img.shields.io/travis/whxaxes/egg-ts-helper.svg
[appveyor-url]: https://ci.appveyor.com/project/whxaxes/egg-ts-helper/branch/master
[appveyor-image]: https://ci.appveyor.com/api/projects/status/github/whxaxes/egg-ts-helper?branch=master&svg=true
[codecov-image]: https://codecov.io/gh/whxaxes/egg-ts-helper/branch/master/graph/badge.svg

@@ -527,1 +522,5 @@ [codecov-url]: https://codecov.io/gh/whxaxes/egg-ts-helper

JS 项目: https://github.com/whxaxes/egg-boilerplate-d-js
## License
[MIT](LICENSE)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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