Comparing version 4.3.2 to 5.0.0
@@ -622,3 +622,3 @@ export = SimpleStorage; | ||
}; | ||
type SimpleStorageStorageType = "session" | "local" | "temp"; | ||
type SimpleStorageStorageType = 'local' | 'session' | 'temp'; | ||
type SimpleStorageStorageOptions = { | ||
@@ -625,0 +625,0 @@ /** |
@@ -0,1 +1,13 @@ | ||
# [5.0.0](https://github.com/homer0/wootils/compare/4.3.2...5.0.0) (2021-04-11) | ||
### Bug Fixes | ||
* drop support for Node 10 ([a08315c](https://github.com/homer0/wootils/commit/a08315ca5844adede51f29abb8d8ff2c93a8ed77)) | ||
### BREAKING CHANGES | ||
* This package no longer supports Node 10. | ||
## [4.3.2](https://github.com/homer0/wootils/compare/4.3.1...4.3.2) (2021-01-25) | ||
@@ -2,0 +14,0 @@ |
@@ -622,3 +622,3 @@ export = SimpleStorage; | ||
}; | ||
type SimpleStorageStorageType = "session" | "local" | "temp"; | ||
type SimpleStorageStorageType = 'local' | 'session' | 'temp'; | ||
type SimpleStorageStorageOptions = { | ||
@@ -625,0 +625,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
export type EnvironmentUtils = import("./environmentUtils").EnvironmentUtils; | ||
export type RootRequireFn = (path: string) => any; | ||
export type ProviderCreator<O> = (options: Partial<O>) => import("../shared/jimpleFns").Provider; | ||
export type EnvironmentUtils = import('./environmentUtils').EnvironmentUtils; | ||
export type RootRequireFn = import('./rootRequire').RootRequireFn; | ||
export type ProviderCreator<O> = import('../shared/jimpleFns').ProviderCreator<O>; | ||
export type AppConfigurationOptions = { | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
export type ProviderCreator<O> = (options: Partial<O>) => import("../shared/jimpleFns").Provider; | ||
export type ProviderCreator<O> = import('../shared/jimpleFns').ProviderCreator<O>; | ||
export type EnvironmentUtilsProviderOptions = { | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
export type Logger = import("./logger").Logger; | ||
export type ProviderCreator<O> = (options: Partial<O>) => import("../shared/jimpleFns").Provider; | ||
export type Logger = import('./logger').Logger; | ||
export type ProviderCreator<O> = import('../shared/jimpleFns').ProviderCreator<O>; | ||
export type ErrorHandlerServiceMap = { | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
export type ProviderCreator<O> = (options: Partial<O>) => import("../shared/jimpleFns").Provider; | ||
export type ProviderCreator<O> = import('../shared/jimpleFns').ProviderCreator<O>; | ||
export type PackageInfo = { | ||
@@ -61,3 +61,3 @@ /** | ||
export type LoggerLine = string | string[]; | ||
export type LoggerMessage = string | (string | string[])[]; | ||
export type LoggerMessage = string | LoggerLine[]; | ||
/** | ||
@@ -64,0 +64,0 @@ * @module node/logger |
@@ -1,3 +0,3 @@ | ||
export type PathUtils = import("./pathUtils").PathUtils; | ||
export type ProviderCreator<O> = (options: Partial<O>) => import("../shared/jimpleFns").Provider; | ||
export type PathUtils = import('./pathUtils').PathUtils; | ||
export type ProviderCreator<O> = import('../shared/jimpleFns').ProviderCreator<O>; | ||
export type PackageInfoServiceMap = { | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
export type ProviderCreator<O> = (options: Partial<O>) => import("../shared/jimpleFns").Provider; | ||
export type ProviderCreator<O> = import('../shared/jimpleFns').ProviderCreator<O>; | ||
export type PathUtilsProviderOptions = { | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
export type PathUtils = import("./pathUtils").PathUtils; | ||
export type ProviderCreator<O> = (options: Partial<O>) => import("../shared/jimpleFns").Provider; | ||
export type PathUtils = import('./pathUtils').PathUtils; | ||
export type ProviderCreator<O> = import('../shared/jimpleFns').ProviderCreator<O>; | ||
export type RootRequireServiceMap = { | ||
@@ -4,0 +4,0 @@ /** |
@@ -284,3 +284,3 @@ export = APIClient; | ||
get endpoints(): { | ||
[x: string]: APIClientEndpointValue; | ||
[x: string]: string | APIClientEndpoint; | ||
}; | ||
@@ -349,3 +349,2 @@ /** | ||
type APIClientRequestOptions = APIClientFetchOptions & APIClientRequestOptionsProperties; | ||
type APIClientEndpointValue = string | APIClientEndpoint; | ||
type APIClientEndpoints = { | ||
@@ -360,1 +359,2 @@ [x: string]: APIClientEndpointValue; | ||
}; | ||
type APIClientEndpointValue = string | APIClientEndpoint; |
@@ -1,2 +0,2 @@ | ||
export type DeepAssignArrayMode = "concat" | "merge" | "shallowMerge" | "overwrite"; | ||
export type DeepAssignArrayMode = 'merge' | 'shallowMerge' | 'concat' | 'overwrite'; | ||
export type DeepAssignOptions = { | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,3 +0,2 @@ | ||
/// <reference path="../../@types/jimple.module.d.ts" /> | ||
export type Jimple = import("jimple").default; | ||
export type Jimple = import('jimple').default; | ||
export type ProviderRegisterFn = (app: Jimple) => void; | ||
@@ -25,5 +24,3 @@ export type Provider = { | ||
}; | ||
export type Providers = { | ||
[x: string]: Provider; | ||
} & ProvidersProperties; | ||
export type Providers = ProvidersDictionary & ProvidersProperties; | ||
export type ProvidersProperties = { | ||
@@ -30,0 +27,0 @@ /** |
@@ -361,5 +361,3 @@ export = ObjectUtils; | ||
} | ||
type ObjectUtilsExtractPath = string | { | ||
[x: string]: string; | ||
}; | ||
type ObjectUtilsExtractPath = ObjectUtilsExtractPathsDictionary | string; | ||
type ObjectUtilsShouldFlatFn = (key: string, value: any) => boolean; | ||
@@ -366,0 +364,0 @@ type ObjectUtilsExtractPathsDictionary = { |
@@ -1,4 +0,4 @@ | ||
export type EnvironmentUtils = import("./environmentUtils").EnvironmentUtils; | ||
export type RootRequireFn = (path: string) => any; | ||
export type ProviderCreator<O> = (options: Partial<O>) => import("../shared/jimpleFns").Provider; | ||
export type EnvironmentUtils = import('./environmentUtils').EnvironmentUtils; | ||
export type RootRequireFn = import('./rootRequire').RootRequireFn; | ||
export type ProviderCreator<O> = import('../shared/jimpleFns').ProviderCreator<O>; | ||
export type AppConfigurationOptions = { | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
export type ProviderCreator<O> = (options: Partial<O>) => import("../shared/jimpleFns").Provider; | ||
export type ProviderCreator<O> = import('../shared/jimpleFns').ProviderCreator<O>; | ||
export type EnvironmentUtilsProviderOptions = { | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
export type Logger = import("./logger").Logger; | ||
export type ProviderCreator<O> = (options: Partial<O>) => import("../shared/jimpleFns").Provider; | ||
export type Logger = import('./logger').Logger; | ||
export type ProviderCreator<O> = import('../shared/jimpleFns').ProviderCreator<O>; | ||
export type ErrorHandlerServiceMap = { | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
export type ProviderCreator<O> = (options: Partial<O>) => import("../shared/jimpleFns").Provider; | ||
export type ProviderCreator<O> = import('../shared/jimpleFns').ProviderCreator<O>; | ||
export type PackageInfo = { | ||
@@ -61,3 +61,3 @@ /** | ||
export type LoggerLine = string | string[]; | ||
export type LoggerMessage = string | (string | string[])[]; | ||
export type LoggerMessage = string | LoggerLine[]; | ||
/** | ||
@@ -64,0 +64,0 @@ * @module node/logger |
@@ -1,3 +0,3 @@ | ||
export type PathUtils = import("./pathUtils").PathUtils; | ||
export type ProviderCreator<O> = (options: Partial<O>) => import("../shared/jimpleFns").Provider; | ||
export type PathUtils = import('./pathUtils').PathUtils; | ||
export type ProviderCreator<O> = import('../shared/jimpleFns').ProviderCreator<O>; | ||
export type PackageInfoServiceMap = { | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
export type ProviderCreator<O> = (options: Partial<O>) => import("../shared/jimpleFns").Provider; | ||
export type ProviderCreator<O> = import('../shared/jimpleFns').ProviderCreator<O>; | ||
export type PathUtilsProviderOptions = { | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
export type PathUtils = import("./pathUtils").PathUtils; | ||
export type ProviderCreator<O> = (options: Partial<O>) => import("../shared/jimpleFns").Provider; | ||
export type PathUtils = import('./pathUtils').PathUtils; | ||
export type ProviderCreator<O> = import('../shared/jimpleFns').ProviderCreator<O>; | ||
export type RootRequireServiceMap = { | ||
@@ -4,0 +4,0 @@ /** |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://homer0.github.io/wootils/", | ||
"version": "4.3.2", | ||
"version": "5.0.0", | ||
"repository": "homer0/wootils", | ||
@@ -13,3 +13,3 @@ "author": "Leonardo Apiwan (@homer0) <me@homer0.com>", | ||
"colors": "^1.4.0", | ||
"urijs": "^1.19.5", | ||
"urijs": "^1.19.6", | ||
"statuses": "^2.0.1", | ||
@@ -19,12 +19,13 @@ "extend": "^3.0.2" | ||
"devDependencies": { | ||
"@homer0/eslint-plugin": "^6.0.2", | ||
"@commitlint/cli": "^12.1.1", | ||
"@commitlint/config-conventional": "^12.1.1", | ||
"@homer0/eslint-plugin": "^7.0.0", | ||
"@homer0/prettier-config": "^1.1.1", | ||
"@homer0/prettier-plugin-jsdoc": "^2.0.0", | ||
"@homer0/prettier-plugin-jsdoc": "^4.0.0", | ||
"@semantic-release/changelog": "^5.0.1", | ||
"@semantic-release/git": "^9.0.0", | ||
"cjs2esm": "^1.1.0", | ||
"commitizen": "^4.2.3", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"eslint": "^7.18.0", | ||
"husky": "^4.3.8", | ||
"cjs2esm": "^2.0.0", | ||
"eslint": "^7.24.0", | ||
"husky": "^6.0.0", | ||
"is-ci": "^3.0.0", | ||
"jest": "^26.6.3", | ||
@@ -35,7 +36,7 @@ "jimple": "^1.5.0", | ||
"docdash": "homer0/docdash#semver:^2.1.0", | ||
"leasot": "^11.5.0", | ||
"lint-staged": "^10.5.3", | ||
"leasot": "^11.6.0", | ||
"lint-staged": "^10.5.4", | ||
"prettier": "^2.2.1", | ||
"semantic-release": "^17.3.7", | ||
"typescript": "^4.1.3", | ||
"semantic-release": "^17.4.2", | ||
"typescript": "^4.2.4", | ||
"yarn-or-npm": "^3.0.1" | ||
@@ -45,10 +46,8 @@ }, | ||
"engines": { | ||
"node": ">=10.0.0" | ||
"node": ">=12" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "./utils/hooks/pre-commit", | ||
"post-merge": "./utils/hooks/post-merge", | ||
"prepare-commit-msg": "./utils/hooks/prepare-commit-msg" | ||
} | ||
"commitlint": { | ||
"extends": [ | ||
"@commitlint/config-conventional" | ||
] | ||
}, | ||
@@ -62,2 +61,3 @@ "lint-staged": { | ||
"scripts": { | ||
"prepare": "./utils/scripts/prepare", | ||
"prepublishOnly": "./utils/scripts/prepublishOnly", | ||
@@ -80,7 +80,4 @@ "test": "./utils/scripts/test", | ||
] | ||
}, | ||
"commitizen": { | ||
"path": "cz-conventional-changelog" | ||
} | ||
} | ||
} |
# Wootils | ||
[![GitHub Workflow Status (master)](https://img.shields.io/github/workflow/status/homer0/wootils/Test/master?style=flat-square)](https://github.com/homer0/wootils/actions?query=workflow%3ATest) | ||
[![Coveralls GitHub](https://img.shields.io/coveralls/github/homer0/wootils.svg?style=flat-square)](https://coveralls.io/github/homer0/wootils?branch=master) | ||
[![GitHub Workflow Status (main)](https://img.shields.io/github/workflow/status/homer0/wootils/Test/main?style=flat-square)](https://github.com/homer0/wootils/actions?query=workflow%3ATest) | ||
[![Coveralls GitHub](https://img.shields.io/coveralls/github/homer0/wootils.svg?style=flat-square)](https://coveralls.io/github/homer0/wootils?branch=main) | ||
[![David](https://img.shields.io/david/homer0/wootils.svg?style=flat-square)](https://david-dm.org/homer0/wootils) | ||
@@ -158,15 +158,17 @@ [![David](https://img.shields.io/david/dev/homer0/wootils.svg?style=flat-square)](https://david-dm.org/homer0/wootils) | ||
I use [`husky`](https://yarnpkg.com/package/husky) to automatically install the repository hooks so the code will be tested and linted before any commit and the dependencies updated after every merge. | ||
I use [`husky`](https://yarnpkg.com/package/husky) to automatically install the repository hooks so... | ||
The configuration is on the `husky` property of the `package.json` and the hooks' files are on `./utils/hooks`. | ||
1. The code will be formatted and linted before any commit. | ||
2. The dependencies will be updated after every merge. | ||
3. The tests will run before pushing. | ||
#### Commits convention | ||
I use [conventional commits](https://www.conventionalcommits.org) with [`commitizen`](https://yarnpkg.com/package/commitizen) in order to support semantic releases. The one that sets it up is actually husky, that installs a script that runs commitizen on the `git commit` command. | ||
I use [conventional commits](https://www.conventionalcommits.org) with [`commitlint`](https://commitlint.js.org) in order to support semantic releases. The one that sets it up is actually husky, that installs a script that runs `commitlint` on the `git commit` command. | ||
The hook for this is on `./utils/hooks/prepare-commit-msg` and the configuration for comitizen is on the `config.commitizen` property of the `package.json`. | ||
The configuration is on the `commitlint` property of the `package.json`. | ||
### Releases | ||
I use [`semantic-release`](https://yarnpkg.com/package/semantic-release) and a GitHub action to automatically release on NPM everything that gets merged to master. | ||
I use [`semantic-release`](https://yarnpkg.com/package/semantic-release) and a GitHub action to automatically release on NPM everything that gets merged to main. | ||
@@ -173,0 +175,0 @@ The configuration for `semantic-release` is on `./releaserc` and the workflow for the release is on `./.github/workflow/release.yml`. |
@@ -284,3 +284,3 @@ export = APIClient; | ||
get endpoints(): { | ||
[x: string]: APIClientEndpointValue; | ||
[x: string]: string | APIClientEndpoint; | ||
}; | ||
@@ -349,3 +349,2 @@ /** | ||
type APIClientRequestOptions = APIClientFetchOptions & APIClientRequestOptionsProperties; | ||
type APIClientEndpointValue = string | APIClientEndpoint; | ||
type APIClientEndpoints = { | ||
@@ -360,1 +359,2 @@ [x: string]: APIClientEndpointValue; | ||
}; | ||
type APIClientEndpointValue = string | APIClientEndpoint; |
@@ -1,2 +0,2 @@ | ||
export type DeepAssignArrayMode = "concat" | "merge" | "shallowMerge" | "overwrite"; | ||
export type DeepAssignArrayMode = 'merge' | 'shallowMerge' | 'concat' | 'overwrite'; | ||
export type DeepAssignOptions = { | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,3 +0,2 @@ | ||
/// <reference path="../@types/jimple.module.d.ts" /> | ||
export type Jimple = import("jimple").default; | ||
export type Jimple = import('jimple').default; | ||
export type ProviderRegisterFn = (app: Jimple) => void; | ||
@@ -25,5 +24,3 @@ export type Provider = { | ||
}; | ||
export type Providers = { | ||
[x: string]: Provider; | ||
} & ProvidersProperties; | ||
export type Providers = ProvidersDictionary & ProvidersProperties; | ||
export type ProvidersProperties = { | ||
@@ -30,0 +27,0 @@ /** |
@@ -361,5 +361,3 @@ export = ObjectUtils; | ||
} | ||
type ObjectUtilsExtractPath = string | { | ||
[x: string]: string; | ||
}; | ||
type ObjectUtilsExtractPath = ObjectUtilsExtractPathsDictionary | string; | ||
type ObjectUtilsShouldFlatFn = (key: string, value: any) => boolean; | ||
@@ -366,0 +364,0 @@ type ObjectUtilsExtractPathsDictionary = { |
@@ -622,3 +622,3 @@ export = SimpleStorage; | ||
}; | ||
type SimpleStorageStorageType = "session" | "local" | "temp"; | ||
type SimpleStorageStorageType = 'local' | 'session' | 'temp'; | ||
type SimpleStorageStorageOptions = { | ||
@@ -625,0 +625,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
export type EnvironmentUtils = import("./environmentUtils").EnvironmentUtils; | ||
export type RootRequireFn = (path: string) => any; | ||
export type ProviderCreator<O> = (options: Partial<O>) => import("../shared/jimpleFns").Provider; | ||
export type EnvironmentUtils = import('./environmentUtils').EnvironmentUtils; | ||
export type RootRequireFn = import('./rootRequire').RootRequireFn; | ||
export type ProviderCreator<O> = import('../shared/jimpleFns').ProviderCreator<O>; | ||
export type AppConfigurationOptions = { | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
export type ProviderCreator<O> = (options: Partial<O>) => import("../shared/jimpleFns").Provider; | ||
export type ProviderCreator<O> = import('../shared/jimpleFns').ProviderCreator<O>; | ||
export type EnvironmentUtilsProviderOptions = { | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
export type Logger = import("./logger").Logger; | ||
export type ProviderCreator<O> = (options: Partial<O>) => import("../shared/jimpleFns").Provider; | ||
export type Logger = import('./logger').Logger; | ||
export type ProviderCreator<O> = import('../shared/jimpleFns').ProviderCreator<O>; | ||
export type ErrorHandlerServiceMap = { | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
export type ProviderCreator<O> = (options: Partial<O>) => import("../shared/jimpleFns").Provider; | ||
export type ProviderCreator<O> = import('../shared/jimpleFns').ProviderCreator<O>; | ||
export type PackageInfo = { | ||
@@ -61,3 +61,3 @@ /** | ||
export type LoggerLine = string | string[]; | ||
export type LoggerMessage = string | (string | string[])[]; | ||
export type LoggerMessage = string | LoggerLine[]; | ||
/** | ||
@@ -64,0 +64,0 @@ * @module node/logger |
@@ -1,3 +0,3 @@ | ||
export type PathUtils = import("./pathUtils").PathUtils; | ||
export type ProviderCreator<O> = (options: Partial<O>) => import("../shared/jimpleFns").Provider; | ||
export type PathUtils = import('./pathUtils').PathUtils; | ||
export type ProviderCreator<O> = import('../shared/jimpleFns').ProviderCreator<O>; | ||
export type PackageInfoServiceMap = { | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
export type ProviderCreator<O> = (options: Partial<O>) => import("../shared/jimpleFns").Provider; | ||
export type ProviderCreator<O> = import('../shared/jimpleFns').ProviderCreator<O>; | ||
export type PathUtilsProviderOptions = { | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
export type PathUtils = import("./pathUtils").PathUtils; | ||
export type ProviderCreator<O> = (options: Partial<O>) => import("../shared/jimpleFns").Provider; | ||
export type PathUtils = import('./pathUtils').PathUtils; | ||
export type ProviderCreator<O> = import('../shared/jimpleFns').ProviderCreator<O>; | ||
export type RootRequireServiceMap = { | ||
@@ -4,0 +4,0 @@ /** |
@@ -284,3 +284,3 @@ export = APIClient; | ||
get endpoints(): { | ||
[x: string]: APIClientEndpointValue; | ||
[x: string]: string | APIClientEndpoint; | ||
}; | ||
@@ -349,3 +349,2 @@ /** | ||
type APIClientRequestOptions = APIClientFetchOptions & APIClientRequestOptionsProperties; | ||
type APIClientEndpointValue = string | APIClientEndpoint; | ||
type APIClientEndpoints = { | ||
@@ -360,1 +359,2 @@ [x: string]: APIClientEndpointValue; | ||
}; | ||
type APIClientEndpointValue = string | APIClientEndpoint; |
@@ -1,2 +0,2 @@ | ||
export type DeepAssignArrayMode = "concat" | "merge" | "shallowMerge" | "overwrite"; | ||
export type DeepAssignArrayMode = 'merge' | 'shallowMerge' | 'concat' | 'overwrite'; | ||
export type DeepAssignOptions = { | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,3 +0,2 @@ | ||
/// <reference path="../../@types/jimple.module.d.ts" /> | ||
export type Jimple = import("jimple").default; | ||
export type Jimple = import('jimple').default; | ||
export type ProviderRegisterFn = (app: Jimple) => void; | ||
@@ -25,5 +24,3 @@ export type Provider = { | ||
}; | ||
export type Providers = { | ||
[x: string]: Provider; | ||
} & ProvidersProperties; | ||
export type Providers = ProvidersDictionary & ProvidersProperties; | ||
export type ProvidersProperties = { | ||
@@ -30,0 +27,0 @@ /** |
@@ -361,5 +361,3 @@ export = ObjectUtils; | ||
} | ||
type ObjectUtilsExtractPath = string | { | ||
[x: string]: string; | ||
}; | ||
type ObjectUtilsExtractPath = ObjectUtilsExtractPathsDictionary | string; | ||
type ObjectUtilsShouldFlatFn = (key: string, value: any) => boolean; | ||
@@ -366,0 +364,0 @@ type ObjectUtilsExtractPathsDictionary = { |
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
203
732937
22
19400
Updatedurijs@^1.19.6