@p8ec/shared 2.4.1 → 2.4.2
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.
|
@@ -77,7 +77,7 @@ function ask(_a) {
|
|
|
77
77
|
input: process.stdin,
|
|
78
78
|
output: process.stdout,
|
|
79
79
|
});
|
|
80
|
-
return new Promise((resolve
|
|
80
|
+
return new Promise((resolve) => {
|
|
81
81
|
rl.question(question + ' ', (answer) => __awaiter(this, void 0, void 0, function* () {
|
|
82
82
|
rl.close();
|
|
83
83
|
const cleaned = answer.trim().toLowerCase();
|
|
@@ -3,39 +3,6 @@
|
|
|
3
3
|
* 2024 Copyright P8 Enterprise Components, Inc.
|
|
4
4
|
* All Rights Reserved.
|
|
5
5
|
*/
|
|
6
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
-
if (k2 === undefined) k2 = k;
|
|
8
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
-
}
|
|
12
|
-
Object.defineProperty(o, k2, desc);
|
|
13
|
-
}) : (function(o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
o[k2] = m[k];
|
|
16
|
-
}));
|
|
17
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
18
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
19
|
-
}) : function(o, v) {
|
|
20
|
-
o["default"] = v;
|
|
21
|
-
});
|
|
22
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
23
|
-
var ownKeys = function(o) {
|
|
24
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
25
|
-
var ar = [];
|
|
26
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
27
|
-
return ar;
|
|
28
|
-
};
|
|
29
|
-
return ownKeys(o);
|
|
30
|
-
};
|
|
31
|
-
return function (mod) {
|
|
32
|
-
if (mod && mod.__esModule) return mod;
|
|
33
|
-
var result = {};
|
|
34
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
35
|
-
__setModuleDefault(result, mod);
|
|
36
|
-
return result;
|
|
37
|
-
};
|
|
38
|
-
})();
|
|
39
6
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
40
7
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
41
8
|
};
|
|
@@ -44,13 +11,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
44
11
|
* Recommended ESLint configuration for TypeScript projects.
|
|
45
12
|
*/
|
|
46
13
|
const js_1 = __importDefault(require("@eslint/js"));
|
|
47
|
-
const
|
|
14
|
+
const typescript_eslint_1 = __importDefault(require("typescript-eslint"));
|
|
48
15
|
const recommended_1 = __importDefault(require("eslint-plugin-prettier/recommended"));
|
|
49
16
|
// @ts-expect-error - importing from a JS file to TS:
|
|
50
17
|
const eslint_plugin_headers_1 = __importDefault(require("eslint-plugin-headers"));
|
|
51
18
|
exports.default = (override) => {
|
|
52
19
|
var _a;
|
|
53
|
-
return
|
|
20
|
+
return typescript_eslint_1.default.config(js_1.default.configs.recommended, typescript_eslint_1.default.configs.recommended, recommended_1.default, {
|
|
54
21
|
ignores: ['**/dist/'],
|
|
55
22
|
}, {
|
|
56
23
|
plugins: {
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
* Recommended ESLint configuration for TypeScript projects.
|
|
7
7
|
*/
|
|
8
8
|
import eslint from '@eslint/js';
|
|
9
|
-
import
|
|
9
|
+
import tslint from 'typescript-eslint';
|
|
10
10
|
import eslintPluginPrettierRecommendedConfig from 'eslint-plugin-prettier/recommended';
|
|
11
11
|
// @ts-expect-error - importing from a JS file to TS:
|
|
12
12
|
import eslintPluginHeaders from 'eslint-plugin-headers';
|
|
13
13
|
export default (override) => {
|
|
14
14
|
var _a;
|
|
15
|
-
return tslint.config(eslint.configs.recommended,
|
|
15
|
+
return tslint.config(eslint.configs.recommended, tslint.configs.recommended, eslintPluginPrettierRecommendedConfig, {
|
|
16
16
|
ignores: ['**/dist/'],
|
|
17
17
|
}, {
|
|
18
18
|
plugins: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@p8ec/shared",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.2",
|
|
4
4
|
"description": "P(8) Global Shared Library for Javascript",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"eslint": "^9.32.0",
|
|
40
40
|
"eslint-config-prettier": "^10.1.8",
|
|
41
41
|
"eslint-plugin-headers": "^1.3.3",
|
|
42
|
-
"eslint-plugin-prettier": "^5.5.
|
|
42
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
43
43
|
"ferramenta": "^1.3.2",
|
|
44
44
|
"prettier": "^3.6.2",
|
|
45
|
-
"typescript-eslint": "^8.
|
|
45
|
+
"typescript-eslint": "^8.39.0"
|
|
46
46
|
}
|
|
47
47
|
}
|