@vroskus/library-social 1.0.26 → 1.0.28
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.js +8 -2
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -105,11 +105,17 @@ _Social_instances = new WeakSet(), _Social_setupMock = function _Social_setupMoc
|
|
|
105
105
|
const mock = new axios_mock_adapter_1.default(axios_1.default);
|
|
106
106
|
mock.onGet('https://graph.facebook.com/v9.0/me').reply(() => {
|
|
107
107
|
const responseBody = mocks_1.facebookMock;
|
|
108
|
-
return [
|
|
108
|
+
return [
|
|
109
|
+
successStatus,
|
|
110
|
+
responseBody,
|
|
111
|
+
];
|
|
109
112
|
});
|
|
110
113
|
mock.onGet(/https:\/\/www.googleapis.com\/oauth2\/v2\/userinfo/).reply(() => {
|
|
111
114
|
const responseBody = mocks_1.googleMock;
|
|
112
|
-
return [
|
|
115
|
+
return [
|
|
116
|
+
successStatus,
|
|
117
|
+
responseBody,
|
|
118
|
+
];
|
|
113
119
|
});
|
|
114
120
|
};
|
|
115
121
|
exports.default = Social;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vroskus/library-social",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.28",
|
|
4
4
|
"description": "Social",
|
|
5
5
|
"author": "Vilius Roškus <vilius@regattas.eu>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,22 +23,22 @@
|
|
|
23
23
|
"test:e2e:post": "jest-coverage-thresholds-bumper"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@vroskus/library-validator": "^2.0.
|
|
27
|
-
"axios": "^1.
|
|
26
|
+
"@vroskus/library-validator": "^2.0.2",
|
|
27
|
+
"axios": "^1.16.0",
|
|
28
28
|
"axios-mock-adapter": "^2.1.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/axios": "^0.14.4",
|
|
32
32
|
"@types/jest": "^30.0.0",
|
|
33
|
-
"@types/node": "^25.
|
|
34
|
-
"@types/supertest": "^
|
|
35
|
-
"@vroskus/eslint-config": "^1.
|
|
33
|
+
"@types/node": "^25.6.2",
|
|
34
|
+
"@types/supertest": "^7.2.0",
|
|
35
|
+
"@vroskus/eslint-config": "^1.1.3",
|
|
36
36
|
"express": "^5.2.1",
|
|
37
|
-
"jest": "^30.2
|
|
37
|
+
"jest": "^30.4.2",
|
|
38
38
|
"jest-coverage-thresholds-bumper": "^1.1.0",
|
|
39
39
|
"supertest": "^7.2.2",
|
|
40
|
-
"ts-jest": "^29.4.
|
|
41
|
-
"typescript": "^
|
|
40
|
+
"ts-jest": "^29.4.9",
|
|
41
|
+
"typescript": "^6.0.3"
|
|
42
42
|
},
|
|
43
43
|
"jest": {
|
|
44
44
|
"preset": "ts-jest",
|