@my-devkit/core 1.0.84 → 1.0.85

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.
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
18
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
18
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
18
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
package/dist/retry.js CHANGED
@@ -25,7 +25,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
25
25
  function verb(n) { return function (v) { return step([n, v]); }; }
26
26
  function step(op) {
27
27
  if (f) throw new TypeError("Generator is already executing.");
28
- while (_) try {
28
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
29
29
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
30
30
  if (y = 0, t) op = [op[0] & 2, t.value];
31
31
  switch (op[0]) {
package/dist/sleep.js CHANGED
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
18
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
@@ -1,21 +1,21 @@
1
1
  import { ListIteratee } from 'lodash';
2
- declare type List<T> = ArrayLike<T>;
3
- declare type ObjectIterator<TObject, TResult> = (value: TObject[keyof TObject], key: string, collection: TObject) => TResult;
4
- declare type ObjectIteratee<TObject> = ObjectIterator<TObject, NotVoid> | IterateeShorthand<TObject[keyof TObject]>;
2
+ type List<T> = ArrayLike<T>;
3
+ type ObjectIterator<TObject, TResult> = (value: TObject[keyof TObject], key: string, collection: TObject) => TResult;
4
+ type ObjectIteratee<TObject> = ObjectIterator<TObject, NotVoid> | IterateeShorthand<TObject[keyof TObject]>;
5
5
  interface Dictionary<T> {
6
6
  [index: string]: T;
7
7
  }
8
- declare type NotVoid = unknown;
9
- declare type PropertyName = string | number | symbol;
10
- declare type PartialShallow<T> = {
8
+ type NotVoid = unknown;
9
+ type PropertyName = string | number | symbol;
10
+ type PartialShallow<T> = {
11
11
  [P in keyof T]?: T[P] extends object ? object : T[P];
12
12
  };
13
- declare type IterateeShorthand<T> = PropertyName | [PropertyName, any] | PartialShallow<T>;
14
- declare type Many<T> = T | ReadonlyArray<T>;
15
- declare type ValueIteratee<T> = ((value: T) => NotVoid) | IterateeShorthand<T>;
16
- declare type RecursiveArray<T> = Array<T | RecursiveArray<T>>;
17
- declare type ListOfRecursiveArraysOrValues<T> = List<T | RecursiveArray<T>>;
18
- declare type Flat<T> = T extends string ? T : (T extends List<any> ? never : T);
13
+ type IterateeShorthand<T> = PropertyName | [PropertyName, any] | PartialShallow<T>;
14
+ type Many<T> = T | ReadonlyArray<T>;
15
+ type ValueIteratee<T> = ((value: T) => NotVoid) | IterateeShorthand<T>;
16
+ type RecursiveArray<T> = Array<T | RecursiveArray<T>>;
17
+ type ListOfRecursiveArraysOrValues<T> = List<T | RecursiveArray<T>>;
18
+ type Flat<T> = T extends string ? T : (T extends List<any> ? never : T);
19
19
  export declare const _uniq: <T>(array: List<T> | null | undefined) => T[];
20
20
  export declare const _flatten: <T>(array: List<Many<T>>) => T[];
21
21
  export declare const _flattenDeep: <T>(array: ListOfRecursiveArraysOrValues<T>) => Flat<T>[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@my-devkit/core",
3
- "version": "1.0.84",
3
+ "version": "1.0.85",
4
4
  "description": "My Devkit: common tools",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "peerDependencies": {},
26
26
  "devDependencies": {
27
- "@my-devkit/cli": "1.0.22",
27
+ "@my-devkit/cli": "1.0.23",
28
28
  "@types/lodash": "4.14.173",
29
29
  "@types/node": "^14.14.19",
30
30
  "@typescript-eslint/eslint-plugin": "4.22.1",