ts-ioc-container 27.4.2 → 27.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -43,7 +43,7 @@
43
43
  - [Tests and Mocks](#tests-and-mocks)
44
44
  - [Errors](#errors)
45
45
 
46
- ## Setu
46
+ ## Setup
47
47
 
48
48
  ```shell script
49
49
  npm install ts-ioc-container reflect-metadata
package/cjm/utils.js CHANGED
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.constant = exports.fillEmptyIndexes = exports.pipe = void 0;
4
- function pipe(...mappers) {
5
- return (value) => mappers.reduce((acc, current) => current(acc), value);
6
- }
4
+ const pipe = (...mappers) => (value) => mappers.reduce((acc, current) => current(acc), value);
7
5
  exports.pipe = pipe;
8
6
  function fillEmptyIndexes(baseArr, insertArr) {
9
7
  const a = [...baseArr];
package/esm/utils.js CHANGED
@@ -1,6 +1,4 @@
1
- export function pipe(...mappers) {
2
- return (value) => mappers.reduce((acc, current) => current(acc), value);
3
- }
1
+ export const pipe = (...mappers) => (value) => mappers.reduce((acc, current) => current(acc), value);
4
2
  export function fillEmptyIndexes(baseArr, insertArr) {
5
3
  const a = [...baseArr];
6
4
  const b = [...insertArr];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-ioc-container",
3
- "version": "27.4.2",
3
+ "version": "27.4.4",
4
4
  "description": "Typescript IoC container",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -60,5 +60,5 @@
60
60
  "ts-node": "^10.9.1",
61
61
  "typescript": "4.4.3"
62
62
  },
63
- "gitHead": "f3cf3333af2a2182dcce507a564d30c9cbee2ace"
63
+ "gitHead": "f178a0aa482463f2433c3252b6c44ab295d2656f"
64
64
  }
@@ -1,5 +1,5 @@
1
1
  export declare type constructor<T> = new (...args: any[]) => T;
2
2
  export declare type MapFn<T> = (value: T) => T;
3
- export declare function pipe<T>(...mappers: MapFn<T>[]): MapFn<T>;
3
+ export declare const pipe: <T>(...mappers: MapFn<T>[]) => MapFn<T>;
4
4
  export declare function fillEmptyIndexes<T>(baseArr: (T | undefined)[], insertArr: T[]): T[];
5
5
  export declare const constant: <T>(value: T) => () => T;