fix(objectmap): getArray() now has correct return type
This commit is contained in:
		| @@ -34,6 +34,31 @@ snyk: | |||||||
|   - docker |   - docker | ||||||
|   - notpriv |   - notpriv | ||||||
|  |  | ||||||
|  | sast: | ||||||
|  |   stage: security | ||||||
|  |   image: registry.gitlab.com/hosttoday/ht-docker-dbase:npmci | ||||||
|  |   variables: | ||||||
|  |     DOCKER_DRIVER: overlay2 | ||||||
|  |   allow_failure: true | ||||||
|  |   services: | ||||||
|  |     - docker:stable-dind | ||||||
|  |   script: | ||||||
|  |     - npmci npm prepare | ||||||
|  |     - npmci npm install | ||||||
|  |     - npmci command npm run build | ||||||
|  |     - export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/') | ||||||
|  |     - docker run | ||||||
|  |         --env SAST_CONFIDENCE_LEVEL="${SAST_CONFIDENCE_LEVEL:-3}" | ||||||
|  |         --volume "$PWD:/code" | ||||||
|  |         --volume /var/run/docker.sock:/var/run/docker.sock | ||||||
|  |         "registry.gitlab.com/gitlab-org/security-products/sast:$SP_VERSION" /app/bin/run /code | ||||||
|  |   artifacts: | ||||||
|  |     reports: | ||||||
|  |       sast: gl-sast-report.json | ||||||
|  |   tags: | ||||||
|  |   - docker | ||||||
|  |   - priv | ||||||
|  |  | ||||||
| # ==================== | # ==================== | ||||||
| # test stage | # test stage | ||||||
| # ==================== | # ==================== | ||||||
|   | |||||||
							
								
								
									
										40
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										40
									
								
								README.md
									
									
									
									
									
								
							| @@ -1,26 +1,20 @@ | |||||||
| # lik | # @pushrocks/lik | ||||||
|  |  | ||||||
| light little helpers for node | light little helpers for node | ||||||
|  |  | ||||||
| ## Availabililty | ## Availabililty and Links | ||||||
|  | * [npmjs.org (npm package)](https://www.npmjs.com/package/@pushrocks/lik) | ||||||
| [](https://www.npmjs.com/package/lik) | * [gitlab.com (source)](https://gitlab.com/pushrocks/lik) | ||||||
| [](https://GitLab.com/pushrocks/lik) | * [github.com (source mirror)](https://github.com/pushrocks/lik) | ||||||
| [](https://github.com/pushrocks/lik) | * [docs (typedoc)](https://pushrocks.gitlab.io/lik/) | ||||||
| [](https://pushrocks.gitlab.io/lik/) |  | ||||||
|  |  | ||||||
| ## Status for master | ## Status for master | ||||||
|  | [](https://gitlab.com/pushrocks/lik/commits/master) | ||||||
| [](https://GitLab.com/pushrocks/lik/commits/master) | [](https://gitlab.com/pushrocks/lik/commits/master) | ||||||
| [](https://GitLab.com/pushrocks/lik/commits/master) | [](https://www.npmjs.com/package/@pushrocks/lik) | ||||||
| [](https://www.npmjs.com/package/lik) | [](https://snyk.io/test/npm/@pushrocks/lik) | ||||||
| [](https://david-dm.org/pushrocks/lik) | [](https://nodejs.org/dist/latest-v10.x/docs/api/) | ||||||
| [](https://www.bithound.io/github/pushrocks/lik/master/dependencies/npm) | [](https://nodejs.org/dist/latest-v10.x/docs/api/) | ||||||
| [](https://www.bithound.io/github/pushrocks/lik) | [](https://prettier.io/) | ||||||
| [](https://snyk.io/test/npm/lik) |  | ||||||
| [](https://nodejs.org/dist/latest-v6.x/docs/api/) |  | ||||||
| [](https://nodejs.org/dist/latest-v6.x/docs/api/) |  | ||||||
| [](http://standardjs.com/) |  | ||||||
|  |  | ||||||
| ## Usage | ## Usage | ||||||
|  |  | ||||||
| @@ -41,7 +35,9 @@ like when a certain string is removed or added to the map | |||||||
| Sometimes you need to keep track of objects, but implementing logic for removing, finding or updating is tedious. | Sometimes you need to keep track of objects, but implementing logic for removing, finding or updating is tedious. | ||||||
| Objectmap takes care of keeping track of objects for you. | Objectmap takes care of keeping track of objects for you. | ||||||
|  |  | ||||||
| > MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh) | For further information read the linked docs at the top of this readme. | ||||||
| > | By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html) |  | ||||||
|  |  | ||||||
| [](https://push.rocks) | > MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh) | ||||||
|  | | By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html) | ||||||
|  |  | ||||||
|  | [](https://maintainedby.lossless.com) | ||||||
|   | |||||||
| @@ -2,5 +2,15 @@ | |||||||
|   "npmci": { |   "npmci": { | ||||||
|     "npmGlobalTools": [], |     "npmGlobalTools": [], | ||||||
|     "npmAccessLevel": "public" |     "npmAccessLevel": "public" | ||||||
|  |   }, | ||||||
|  |   "gitzone": { | ||||||
|  |     "module": { | ||||||
|  |       "githost": "gitlab.com", | ||||||
|  |       "gitscope": "pushrocks", | ||||||
|  |       "gitrepo": "lik", | ||||||
|  |       "shortDescription": "light little helpers for node", | ||||||
|  |       "npmPackagename": "@pushrocks/lik", | ||||||
|  |       "license": "MIT" | ||||||
|  |     } | ||||||
|   } |   } | ||||||
| } | } | ||||||
| @@ -37,4 +37,4 @@ | |||||||
|     "minimatch": "^3.0.4", |     "minimatch": "^3.0.4", | ||||||
|     "symbol-tree": "^3.2.2" |     "symbol-tree": "^3.2.2" | ||||||
|   } |   } | ||||||
| } | } | ||||||
| @@ -95,7 +95,7 @@ export class Objectmap<T> { | |||||||
|   /** |   /** | ||||||
|    * returns a cloned array of all the objects currently in the Objectmap |    * returns a cloned array of all the objects currently in the Objectmap | ||||||
|    */ |    */ | ||||||
|   public getArray() { |   public getArray(): T[] { | ||||||
|     const returnArray: any[] = []; |     const returnArray: any[] = []; | ||||||
|     for (const objectItem of this.objectArray) { |     for (const objectItem of this.objectArray) { | ||||||
|       returnArray.push(objectItem); |       returnArray.push(objectItem); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user