common-services
Advanced tools
Comparing version 7.1.5 to 8.0.0
@@ -0,1 +1,5 @@ | ||
# [8.0.0](https://github.com/nfroidure/common-services/compare/v7.1.5...v8.0.0) (2020-09-14) | ||
## [7.1.5](https://github.com/nfroidure/common-services/compare/v7.1.4...v7.1.5) (2020-07-17) | ||
@@ -2,0 +6,0 @@ |
@@ -1,25 +0,2 @@ | ||
declare const _default: typeof initDelayMock; | ||
export default _default; | ||
/** | ||
* Instantiate the delay service mock | ||
* @name initDelayMock | ||
* @function | ||
* @return {Promise<Object>} | ||
* A promise of the mocked delay service | ||
* @example | ||
* import initDelayMock from 'common-services/dist/delay.mock'; | ||
* import assert from 'assert'; | ||
* | ||
* const delay = await initDelayMock(); | ||
* | ||
* const delayPromise = delay.create(1000); | ||
* | ||
* delay.resolve(delayPromise); | ||
* | ||
* delayPromise.then(() => { | ||
* // Any code here will execute immediatly | ||
* // instead of after a 1000ms delay | ||
* }); | ||
*/ | ||
declare function initDelayMock(_: any): Promise<{ | ||
declare const _default: import("knifecycle").HandlerInitializer<any, any[], unknown, unknown, { | ||
service: { | ||
@@ -34,1 +11,2 @@ create: (delay: number) => Promise<void>; | ||
}>; | ||
export default _default; |
@@ -1,2 +0,2 @@ | ||
declare const _default: ({ LOG_ROUTING, logger, debug, }: { | ||
declare const _default: import("knifecycle").HandlerInitializer<{ | ||
LOG_ROUTING?: { | ||
@@ -7,3 +7,3 @@ [type: string]: import("./log").StdStream; | ||
debug?: import("./log").LogService; | ||
}) => Promise<(type: string, ...args: any[]) => void>; | ||
}, any[], unknown, unknown, (type: string, ...args: any[]) => void>; | ||
export default _default; |
@@ -1,4 +0,4 @@ | ||
declare const _default: ({ log, }: { | ||
declare const _default: import("knifecycle").HandlerInitializer<{ | ||
log?: import("./log").LogService; | ||
}) => Promise<import("./delay").DelayProvider>; | ||
}, any[], unknown, unknown, import("./delay").DelayProvider>; | ||
export default _default; |
@@ -1,4 +0,4 @@ | ||
declare const _default: ({ log, }: { | ||
declare const _default: import("knifecycle").HandlerInitializer<{ | ||
log?: import("./log").LogService; | ||
}) => Promise<import("./random").RandomService>; | ||
}, any[], unknown, unknown, import("./random").RandomService>; | ||
export default _default; |
import type { TimeService } from './time'; | ||
declare const _default: ({ log, }: { | ||
declare const _default: import("knifecycle").HandlerInitializer<{ | ||
log?: import("./log").LogService; | ||
}) => Promise<TimeService>; | ||
}, any[], unknown, unknown, TimeService>; | ||
export default _default; |
{ | ||
"name": "common-services", | ||
"version": "7.1.5", | ||
"version": "8.0.0", | ||
"description": "A module to gather very common services and their mocks.", | ||
@@ -41,29 +41,29 @@ "main": "dist/index", | ||
"devDependencies": { | ||
"@babel/cli": "^7.8.4", | ||
"@babel/core": "^7.9.6", | ||
"@babel/plugin-proposal-class-properties": "^7.8.3", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.9.6", | ||
"@babel/preset-env": "^7.9.6", | ||
"@babel/preset-typescript": "^7.9.0", | ||
"@babel/register": "^7.9.0", | ||
"@types/jest": "^25.2.2", | ||
"@typescript-eslint/eslint-plugin": "^2.33.0", | ||
"@typescript-eslint/parser": "^2.33.0", | ||
"@babel/cli": "^7.10.5", | ||
"@babel/core": "^7.11.1", | ||
"@babel/plugin-proposal-class-properties": "^7.10.4", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.11.0", | ||
"@babel/preset-env": "^7.11.0", | ||
"@babel/preset-typescript": "^7.10.4", | ||
"@babel/register": "^7.10.5", | ||
"@types/jest": "^26.0.10", | ||
"@typescript-eslint/eslint-plugin": "^3.9.1", | ||
"@typescript-eslint/parser": "^3.9.1", | ||
"babel-eslint": "^10.1.0", | ||
"babel-plugin-knifecycle": "^1.2.0", | ||
"commitizen": "^4.1.2", | ||
"conventional-changelog-cli": "^2.0.34", | ||
"conventional-changelog-cli": "^2.1.0", | ||
"coveralls": "^3.1.0", | ||
"cz-conventional-changelog": "^3.2.0", | ||
"eslint": "^7.0.0", | ||
"eslint": "^7.7.0", | ||
"eslint-config-typescript": "^3.0.0", | ||
"eslint-plugin-prettier": "^3.1.3", | ||
"jest": "^26.0.1", | ||
"eslint-plugin-prettier": "^3.1.4", | ||
"jest": "^26.4.0", | ||
"jsarch": "^3.0.0", | ||
"jsdoc-to-markdown": "^5.0.3", | ||
"jsdoc-to-markdown": "^6.0.1", | ||
"metapak": "^3.1.10", | ||
"metapak-nfroidure": "10.2.1", | ||
"metapak-nfroidure": "10.2.5", | ||
"prettier": "^2.0.5", | ||
"rimraf": "^3.0.2", | ||
"typescript": "^3.9.2" | ||
"typescript": "^4.0.2" | ||
}, | ||
@@ -113,5 +113,5 @@ "scripts": { | ||
"dependencies": { | ||
"@types/node": "^14.0.23", | ||
"knifecycle": "^9.1.1", | ||
"sinon": "^9.0.2", | ||
"@types/node": "^14.10.1", | ||
"knifecycle": "^10.0.1", | ||
"sinon": "^9.0.3", | ||
"yerror": "^5.0.0" | ||
@@ -118,0 +118,0 @@ }, |
@@ -11,8 +11,8 @@ [//]: # ( ) | ||
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/nfroidure/common-services/blob/master/LICENSE) | ||
[![Build status](https://secure.travis-ci.org/nfroidure/common-services.svg)](https://travis-ci.org/nfroidure/common-services) | ||
[![Coverage Status](https://coveralls.io/repos/nfroidure/common-services/badge.svg?branch=master)](https://coveralls.io/r/nfroidure/common-services?branch=master) | ||
[![Build status](https://travis-ci.com/nfroidure/common-services.svg?branch=master)](https://travis-ci.com/github/nfroidure/common-services) | ||
[![Coverage Status](https://coveralls.io/repos/github/nfroidure/common-services/badge.svg?branch=master)](https://coveralls.io/github/nfroidure/common-services?branch=master) | ||
[![NPM version](https://badge.fury.io/js/common-services.svg)](https://npmjs.org/package/common-services) | ||
[![Dependency Status](https://david-dm.org/nfroidure/common-services.svg)](https://david-dm.org/nfroidure/common-services) | ||
[![devDependency Status](https://david-dm.org/nfroidure/common-services/dev-status.svg)](https://david-dm.org/nfroidure/common-services#info=devDependencies) | ||
[![Package Quality](http://npm.packagequality.com/shield/common-services.svg)](http://packagequality.com/#?package=common-services) | ||
[![Package Quality](https://npm.packagequality.com/shield/common-services.svg)](https://packagequality.com/#?package=common-services) | ||
[![Code Climate](https://codeclimate.com/github/nfroidure/common-services.svg)](https://codeclimate.com/github/nfroidure/common-services) | ||
@@ -19,0 +19,0 @@ |
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
395593
4941
+ Addedknifecycle@10.0.3(transitive)
- Removedknifecycle@9.1.1(transitive)
Updated@types/node@^14.10.1
Updatedknifecycle@^10.0.1
Updatedsinon@^9.0.3