@vroskus/library-social 1.0.9 → 1.0.11
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/index.d.ts +1 -1
- package/dist/index.js +15 -0
- package/package.json +15 -14
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
17
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
18
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -22,6 +36,7 @@ const axios_1 = __importDefault(require("axios"));
|
|
|
22
36
|
const axios_mock_adapter_1 = __importDefault(require("axios-mock-adapter"));
|
|
23
37
|
const library_validator_1 = require("@vroskus/library-validator");
|
|
24
38
|
const mocks_1 = require("./mocks");
|
|
39
|
+
__exportStar(require("./types"), exports);
|
|
25
40
|
const socialPayloadSchema = () => library_validator_1.Validator.object().keys({
|
|
26
41
|
Email: library_validator_1.Validator.string().required(),
|
|
27
42
|
EmailVerified: library_validator_1.Validator.boolean().required(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vroskus/library-social",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "Social",
|
|
5
5
|
"author": "Vilius Roškus <vilius@regattas.eu>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,30 +23,31 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@vroskus/library-validator": "1.0.13",
|
|
26
|
-
"axios": "1.6.
|
|
26
|
+
"axios": "1.6.5",
|
|
27
27
|
"axios-mock-adapter": "1.22.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/axios": "0.14.0",
|
|
31
|
-
"@types/jest": "29.5.
|
|
32
|
-
"@types/node": "20.10.
|
|
33
|
-
"@typescript-eslint/eslint-plugin": "6.
|
|
34
|
-
"@typescript-eslint/parser": "6.
|
|
31
|
+
"@types/jest": "29.5.11",
|
|
32
|
+
"@types/node": "20.10.6",
|
|
33
|
+
"@typescript-eslint/eslint-plugin": "6.18.0",
|
|
34
|
+
"@typescript-eslint/parser": "6.18.0",
|
|
35
35
|
"body-parser": "1.20.2",
|
|
36
|
-
"eslint": "8.
|
|
36
|
+
"eslint": "8.56.0",
|
|
37
37
|
"eslint-config-airbnb-base": "15.0.0",
|
|
38
38
|
"eslint-config-airbnb-typescript": "17.1.0",
|
|
39
|
-
"eslint-
|
|
39
|
+
"eslint-config-problems": "8.0.0",
|
|
40
|
+
"eslint-plugin-import": "2.29.1",
|
|
40
41
|
"eslint-plugin-import-newlines": "1.3.4",
|
|
42
|
+
"eslint-plugin-perfectionist": "2.5.0",
|
|
41
43
|
"eslint-plugin-react": "7.33.2",
|
|
42
|
-
"eslint-plugin-sort": "2.11.0",
|
|
43
44
|
"express": "4.18.2",
|
|
44
45
|
"jest": "29.7.0",
|
|
45
46
|
"jest-coverage-thresholds-bumper": "1.1.0",
|
|
46
47
|
"npm-check": "6.0.1",
|
|
47
48
|
"supertest": "6.3.3",
|
|
48
49
|
"ts-jest": "29.1.1",
|
|
49
|
-
"typescript": "5.3.
|
|
50
|
+
"typescript": "5.3.3"
|
|
50
51
|
},
|
|
51
52
|
"jest": {
|
|
52
53
|
"preset": "ts-jest",
|
|
@@ -61,10 +62,10 @@
|
|
|
61
62
|
],
|
|
62
63
|
"coverageThreshold": {
|
|
63
64
|
"global": {
|
|
64
|
-
"branches":
|
|
65
|
-
"functions":
|
|
66
|
-
"lines":
|
|
67
|
-
"statements":
|
|
65
|
+
"branches": 50.76,
|
|
66
|
+
"functions": 77.27,
|
|
67
|
+
"lines": 88.05,
|
|
68
|
+
"statements": 76.25
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
71
|
}
|