@dr.pogodin/js-utils 0.0.12 → 0.0.13

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/build/time.js CHANGED
@@ -3,7 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.timer = exports.Timer = exports.YEAR_MS = exports.DAY_MS = exports.HOUR_MS = exports.MIN_MS = exports.SEC_MS = void 0;
6
+ exports.Timer = exports.YEAR_MS = exports.DAY_MS = exports.HOUR_MS = exports.MIN_MS = exports.SEC_MS = void 0;
7
+ exports.timer = timer;
7
8
  const Barrier_1 = __importDefault(require("./Barrier"));
8
9
  // This is not very elegant, but as of now TypeScript does not support type
9
10
  // arithmetic, thus we can't have constants assigned like `MIN_MS = 60 * SEC_MS`
@@ -70,4 +71,3 @@ function timer(timeout) {
70
71
  const t = new Timer();
71
72
  return t.init(timeout);
72
73
  }
73
- exports.timer = timer;
@@ -9,6 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.default = withRetries;
12
13
  const time_1 = require("./time");
13
14
  /**
14
15
  * Attempts to perform the given async `action` up to `maxRetries` times with
@@ -39,4 +40,3 @@ function withRetries(action_1) {
39
40
  /* eslint-enable no-await-in-loop */
40
41
  });
41
42
  }
42
- exports.default = withRetries;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dr.pogodin/js-utils",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "Collection of JavaScript (TypeScript) utilities.",
5
5
  "main": "build/index",
6
6
  "react-native": "src/index",
@@ -31,21 +31,21 @@
31
31
  },
32
32
  "homepage": "https://github.com/birdofpreyru/js-utils#readme",
33
33
  "devDependencies": {
34
- "@babel/core": "^7.24.6",
35
- "@babel/preset-env": "^7.24.6",
36
- "@babel/preset-typescript": "^7.24.6",
37
- "@tsconfig/recommended": "^1.0.6",
38
- "@types/jest": "^29.5.12",
34
+ "@babel/core": "^7.26.0",
35
+ "@babel/preset-env": "^7.26.0",
36
+ "@babel/preset-typescript": "^7.26.0",
37
+ "@tsconfig/recommended": "^1.0.8",
38
+ "@types/jest": "^29.5.14",
39
39
  "babel-jest": "^29.7.0",
40
- "eslint": "^8.57.0",
40
+ "eslint": "^8.57.1",
41
41
  "eslint-config-airbnb-base": "^15.0.0",
42
42
  "eslint-config-airbnb-typescript": "^18.0.0",
43
- "eslint-import-resolver-typescript": "^3.6.1",
44
- "eslint-plugin-import": "^2.29.1",
43
+ "eslint-import-resolver-typescript": "^3.7.0",
44
+ "eslint-plugin-import": "^2.31.0",
45
45
  "jest": "^29.7.0",
46
- "rimraf": "^5.0.7",
47
- "tstyche": "^1.1.0",
48
- "typescript": "^5.4.5",
49
- "typescript-eslint": "^7.10.0"
46
+ "rimraf": "^6.0.1",
47
+ "tstyche": "^3.2.0",
48
+ "typescript": "^5.7.2",
49
+ "typescript-eslint": "^8.18.2"
50
50
  }
51
51
  }
@@ -1,3 +1,6 @@
1
1
  {
2
- "testFileMatch": ["__tests__"]
2
+ "testFileMatch": [
3
+ "__tests__/**/*.ts",
4
+ "__tests__/**/*.tsx"
5
+ ]
3
6
  }