@villedemontreal/http-request 7.4.11 → 7.5.0
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/dist/config/configs.d.ts +1 -0
- package/dist/config/configs.d.ts.map +1 -0
- package/dist/src/config/configs.d.ts +1 -0
- package/dist/src/config/configs.d.ts.map +1 -0
- package/dist/src/config/constants.d.ts +1 -0
- package/dist/src/config/constants.d.ts.map +1 -0
- package/dist/src/config/init.d.ts +1 -0
- package/dist/src/config/init.d.ts.map +1 -0
- package/dist/src/httpUtils.d.ts +1 -0
- package/dist/src/httpUtils.d.ts.map +1 -0
- package/dist/src/httpUtils.js +71 -82
- package/dist/src/httpUtils.js.map +1 -1
- package/dist/src/httpUtils.test.d.ts +1 -0
- package/dist/src/httpUtils.test.d.ts.map +1 -0
- package/dist/src/httpUtils.test.js +145 -158
- package/dist/src/httpUtils.test.js.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/utils/logger.d.ts +1 -0
- package/dist/src/utils/logger.d.ts.map +1 -0
- package/dist/src/utils/testingConfigurations.d.ts +1 -0
- package/dist/src/utils/testingConfigurations.d.ts.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +33 -25
- package/src/httpUtils.test.ts +29 -17
- package/src/httpUtils.ts +10 -10
- package/dist/scripts/index.d.ts +0 -2
- package/dist/scripts/index.js +0 -14
- package/dist/scripts/index.js.map +0 -1
- package/dist/scripts/lint.d.ts +0 -6
- package/dist/scripts/lint.js +0 -31
- package/dist/scripts/lint.js.map +0 -1
- package/dist/scripts/lintFix.d.ts +0 -6
- package/dist/scripts/lintFix.js +0 -40
- package/dist/scripts/lintFix.js.map +0 -1
package/dist/scripts/lint.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.LintScript = void 0;
|
|
13
|
-
const src_1 = require("@villedemontreal/scripting/dist/src");
|
|
14
|
-
const path_1 = require("path");
|
|
15
|
-
const configs_1 = require("../config/configs");
|
|
16
|
-
class LintScript extends src_1.ScriptBase {
|
|
17
|
-
get name() {
|
|
18
|
-
return 'lint';
|
|
19
|
-
}
|
|
20
|
-
get description() {
|
|
21
|
-
return `Run the ESLint validation (including ESLint and Prettier rules).`;
|
|
22
|
-
}
|
|
23
|
-
main() {
|
|
24
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
-
const projectRoot = (0, path_1.resolve)(`${configs_1.configs.root}/..`);
|
|
26
|
-
yield this.invokeShellCommand(`${projectRoot}/node_modules/.bin/eslint`, [projectRoot]);
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
exports.LintScript = LintScript;
|
|
31
|
-
//# sourceMappingURL=lint.js.map
|
package/dist/scripts/lint.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lint.js","sourceRoot":"","sources":["../../scripts/lint.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6DAAiE;AACjE,+BAA+B;AAC/B,+CAA4C;AAC5C,MAAa,UAAW,SAAQ,gBAAU;IACxC,IAAI,IAAI;QACN,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,IAAI,WAAW;QACb,OAAO,kEAAkE,CAAC;IAC5E,CAAC;IAEe,IAAI;;YAClB,MAAM,WAAW,GAAG,IAAA,cAAO,EAAC,GAAG,iBAAO,CAAC,IAAI,KAAK,CAAC,CAAC;YAClD,MAAM,IAAI,CAAC,kBAAkB,CAAC,GAAG,WAAW,2BAA2B,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;QAC1F,CAAC;KAAA;CACF;AAbD,gCAaC"}
|
package/dist/scripts/lintFix.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.LintFixScript = void 0;
|
|
13
|
-
const src_1 = require("@villedemontreal/scripting/dist/src");
|
|
14
|
-
const path_1 = require("path");
|
|
15
|
-
const configs_1 = require("../config/configs");
|
|
16
|
-
class LintFixScript extends src_1.ScriptBase {
|
|
17
|
-
get name() {
|
|
18
|
-
return 'lint-fix';
|
|
19
|
-
}
|
|
20
|
-
get description() {
|
|
21
|
-
return `Fix the code using ESLint and Prettier rules).`;
|
|
22
|
-
}
|
|
23
|
-
main() {
|
|
24
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
-
const projectRoot = (0, path_1.resolve)(`${configs_1.configs.root}/..`);
|
|
26
|
-
this.logger.info(`Fixing using Prettier rules`);
|
|
27
|
-
yield this.invokeShellCommand(`${projectRoot}/node_modules/.bin/prettier`, [
|
|
28
|
-
'--write',
|
|
29
|
-
projectRoot,
|
|
30
|
-
]);
|
|
31
|
-
this.logger.info(`Fixing using ESLint rules`);
|
|
32
|
-
yield this.invokeShellCommand(`${projectRoot}/node_modules/.bin/eslint`, [
|
|
33
|
-
'--fix',
|
|
34
|
-
projectRoot,
|
|
35
|
-
]);
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
exports.LintFixScript = LintFixScript;
|
|
40
|
-
//# sourceMappingURL=lintFix.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lintFix.js","sourceRoot":"","sources":["../../scripts/lintFix.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6DAAiE;AACjE,+BAA+B;AAC/B,+CAA4C;AAE5C,MAAa,aAAc,SAAQ,gBAAU;IAC3C,IAAI,IAAI;QACN,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,IAAI,WAAW;QACb,OAAO,gDAAgD,CAAC;IAC1D,CAAC;IAEe,IAAI;;YAClB,MAAM,WAAW,GAAG,IAAA,cAAO,EAAC,GAAG,iBAAO,CAAC,IAAI,KAAK,CAAC,CAAC;YAClD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC;YAChD,MAAM,IAAI,CAAC,kBAAkB,CAAC,GAAG,WAAW,6BAA6B,EAAE;gBACzE,SAAS;gBACT,WAAW;aACZ,CAAC,CAAC;YAEH,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC;YAC9C,MAAM,IAAI,CAAC,kBAAkB,CAAC,GAAG,WAAW,2BAA2B,EAAE;gBACvE,OAAO;gBACP,WAAW;aACZ,CAAC,CAAC;QACL,CAAC;KAAA;CACF;AAvBD,sCAuBC"}
|