fix(core): update
This commit is contained in:
		| @@ -26,6 +26,7 @@ mirror: | |||||||
| snyk: | snyk: | ||||||
|   stage: security |   stage: security | ||||||
|   script: |   script: | ||||||
|  |     - npmci npm prepare | ||||||
|     - npmci command npm install -g snyk |     - npmci command npm install -g snyk | ||||||
|     - npmci command npm install --ignore-scripts |     - npmci command npm install --ignore-scripts | ||||||
|     - npmci command snyk test |     - npmci command snyk test | ||||||
| @@ -36,21 +37,11 @@ snyk: | |||||||
| # ==================== | # ==================== | ||||||
| # test stage | # test stage | ||||||
| # ==================== | # ==================== | ||||||
| testLEGACY: |  | ||||||
|   stage: test |  | ||||||
|   script: |  | ||||||
|   - npmci node install legacy |  | ||||||
|   - npmci npm install |  | ||||||
|   - npmci npm test |  | ||||||
|   coverage: /\d+.?\d+?\%\s*coverage/ |  | ||||||
|   tags: |  | ||||||
|   - docker |  | ||||||
|   - notpriv |  | ||||||
|   allow_failure: true |  | ||||||
|  |  | ||||||
| testLTS: | testLTS: | ||||||
|   stage: test |   stage: test | ||||||
|   script: |   script: | ||||||
|  |   - npmci npm prepare | ||||||
|   - npmci node install lts |   - npmci node install lts | ||||||
|   - npmci npm install |   - npmci npm install | ||||||
|   - npmci npm test |   - npmci npm test | ||||||
| @@ -62,6 +53,7 @@ testLTS: | |||||||
| testSTABLE: | testSTABLE: | ||||||
|   stage: test |   stage: test | ||||||
|   script: |   script: | ||||||
|  |   - npmci npm prepare | ||||||
|   - npmci node install stable |   - npmci node install stable | ||||||
|   - npmci npm install |   - npmci npm install | ||||||
|   - npmci npm test |   - npmci npm test | ||||||
| @@ -117,8 +109,10 @@ pages: | |||||||
|   image: hosttoday/ht-docker-node:npmci |   image: hosttoday/ht-docker-node:npmci | ||||||
|   stage: metadata |   stage: metadata | ||||||
|   script: |   script: | ||||||
|     - npmci command npm install -g npmpage |     - npmci command npm install -g typedoc typescript | ||||||
|     - npmci command npmpage |     - npmci npm prepare | ||||||
|  |     - npmci npm install | ||||||
|  |     - npmci command typedoc --module "commonjs" --target "ES2016" --out public/ ts/ | ||||||
|   tags: |   tags: | ||||||
|     - docker |     - docker | ||||||
|     - notpriv |     - notpriv | ||||||
| @@ -129,13 +123,3 @@ pages: | |||||||
|     paths: |     paths: | ||||||
|     - public |     - public | ||||||
|   allow_failure: true |   allow_failure: true | ||||||
|  |  | ||||||
| windowsCompatibility: |  | ||||||
|   image: stefanscherer/node-windows:10-build-tools |  | ||||||
|   stage: metadata |  | ||||||
|   script: |  | ||||||
|   - npm install & npm test |  | ||||||
|   coverage: /\d+.?\d+?\%\s*coverage/ |  | ||||||
|   tags: |  | ||||||
|   - windows |  | ||||||
|   allow_failure: true |  | ||||||
|   | |||||||
							
								
								
									
										36
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										36
									
								
								README.md
									
									
									
									
									
								
							| @@ -1,25 +1,20 @@ | |||||||
| # @pushrocks/smartpromise | # @pushrocks/smartpromise | ||||||
|  | simple promises and Deferred constructs | ||||||
|  |  | ||||||
| smart helpers that work with promises | ## Availabililty and Links | ||||||
|  | * [npmjs.org (npm package)](https://www.npmjs.com/package/@pushrocks/smartpromise) | ||||||
| ## Availabililty | * [gitlab.com (source)](https://gitlab.com/pushrocks/smartpromise) | ||||||
|  | * [github.com (source mirror)](https://github.com/pushrocks/smartpromise) | ||||||
| [](https://www.npmjs.com/package/smartq) | * [docs (typedoc)](https://pushrocks.gitlab.io/smartpromise/) | ||||||
| [](https://GitLab.com/pushrocks/smartq) |  | ||||||
| [](https://github.com/pushrocks/smartq) |  | ||||||
| [](https://pushrocks.gitlab.io/smartq/) |  | ||||||
|  |  | ||||||
| ## Status for master | ## Status for master | ||||||
|  | [](https://gitlab.com/pushrocks/smartpromise/commits/master) | ||||||
| [](https://GitLab.com/pushrocks/smartq/commits/master) | [](https://gitlab.com/pushrocks/smartpromise/commits/master) | ||||||
| [](https://GitLab.com/pushrocks/smartq/commits/master) | [](https://www.npmjs.com/package/@pushrocks/smartpromise) | ||||||
| [](https://www.npmjs.com/package/smartq) | [](https://snyk.io/test/npm/@pushrocks/smartpromise) | ||||||
| [](https://david-dm.org/pushrocks/smartq) | [](https://nodejs.org/dist/latest-v10.x/docs/api/) | ||||||
| [](https://www.bithound.io/github/pushrocks/smartq/master/dependencies/npm) | [](https://nodejs.org/dist/latest-v10.x/docs/api/) | ||||||
| [](https://www.bithound.io/github/pushrocks/smartq) | [](https://prettier.io/) | ||||||
| [](https://nodejs.org/dist/latest-v6.x/docs/api/) |  | ||||||
| [](https://nodejs.org/dist/latest-v6.x/docs/api/) |  | ||||||
| [](http://standardjs.com/) |  | ||||||
|  |  | ||||||
| ## Usage | ## Usage | ||||||
|  |  | ||||||
| @@ -77,8 +72,9 @@ myPromisedFunction('helloThere', 2).then(x => { | |||||||
| }) | }) | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
| For further information read the linked docs at the top of this README. | For further information read the linked docs at the top of this readme. | ||||||
|  |  | ||||||
| > MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh) | > MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh) | ||||||
|  | | By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html) | ||||||
|  |  | ||||||
| [](https://push.rocks) | [](https://maintainedby.lossless.com) | ||||||
|   | |||||||
| @@ -4,5 +4,15 @@ | |||||||
|       "npmts" |       "npmts" | ||||||
|     ], |     ], | ||||||
|     "npmAccessLevel": "public" |     "npmAccessLevel": "public" | ||||||
|  |   }, | ||||||
|  |   "gitzone": { | ||||||
|  |     "module": { | ||||||
|  |       "githost": "gitlab.com", | ||||||
|  |       "gitscope": "pushrocks", | ||||||
|  |       "gitrepo": "smartpromise", | ||||||
|  |       "shortDescription": "simple promises and Deferred constructs", | ||||||
|  |       "npmPackagename": "@pushrocks/smartpromise", | ||||||
|  |       "license": "MIT" | ||||||
|  |     } | ||||||
|   } |   } | ||||||
| } | } | ||||||
| @@ -25,4 +25,4 @@ | |||||||
|     "@types/node": "^10.5.1", |     "@types/node": "^10.5.1", | ||||||
|     "tapbundle": "^2.0.0" |     "tapbundle": "^2.0.0" | ||||||
|   } |   } | ||||||
| } | } | ||||||
| @@ -18,8 +18,12 @@ tap.test('should let types flow through the Promise', async () => { | |||||||
|  |  | ||||||
| tap.test('should map callbacks', async () => { | tap.test('should map callbacks', async () => { | ||||||
|   let inputArray = ['hi', 'awesome']; |   let inputArray = ['hi', 'awesome']; | ||||||
|   const myPromisified = async (myInput) => { return myInput }; |   const myPromisified = async myInput => { | ||||||
|   const expectPromise = expect(q.map(inputArray, myPromisified)).to.eventually.deep.equal(inputArray); |     return myInput; | ||||||
|  |   }; | ||||||
|  |   const expectPromise = expect(q.map(inputArray, myPromisified)).to.eventually.deep.equal( | ||||||
|  |     inputArray | ||||||
|  |   ); | ||||||
|   return expectPromise; |   return expectPromise; | ||||||
| }); | }); | ||||||
|  |  | ||||||
|   | |||||||
| @@ -41,10 +41,10 @@ export let rejectedPromise = err => { | |||||||
| }; | }; | ||||||
|  |  | ||||||
| interface IAsyncFunction<T> { | interface IAsyncFunction<T> { | ||||||
|   (someArg: T):Promise<T> |   (someArg: T): Promise<T>; | ||||||
| } | } | ||||||
|  |  | ||||||
| export let map = async <T>(inputArg: T[], functionArg: IAsyncFunction<T> ) => { | export let map = async <T>(inputArg: T[], functionArg: IAsyncFunction<T>) => { | ||||||
|   let promiseArray: Promise<any>[] = []; |   let promiseArray: Promise<any>[] = []; | ||||||
|   let resultArray = []; |   let resultArray = []; | ||||||
|   for (let item of inputArg) { |   for (let item of inputArg) { | ||||||
|   | |||||||
							
								
								
									
										16
									
								
								tslint.json
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								tslint.json
									
									
									
									
									
								
							| @@ -1,3 +1,17 @@ | |||||||
| { | { | ||||||
|     "extends": "tslint-config-standard" |   "extends": ["tslint:latest", "tslint-config-prettier"], | ||||||
|  |   "rules": { | ||||||
|  |     "semicolon": [true, "always"], | ||||||
|  |     "no-console": false, | ||||||
|  |     "ordered-imports": false, | ||||||
|  |     "object-literal-sort-keys": false, | ||||||
|  |     "member-ordering": { | ||||||
|  |       "options":{ | ||||||
|  |         "order": [ | ||||||
|  |           "static-method" | ||||||
|  |         ] | ||||||
|  |       } | ||||||
|  |     } | ||||||
|  |   }, | ||||||
|  |   "defaultSeverity": "warning" | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user