@8ms/helpers 1.1.0 → 1.1.1
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/api/index.d.ts +2 -2
- package/dist/api/response.d.ts +2 -2
- package/dist/api/states.d.ts +1 -1
- package/dist/atInternet/index.d.ts +1 -1
- package/dist/atInternet/{types.d.ts → request.d.ts} +0 -0
- package/dist/atInternet/{types.js → request.js} +0 -0
- package/dist/crud/index.d.ts +2 -2
- package/dist/crud/states.d.ts +1 -1
- package/dist/nextAuth/index.d.ts +2 -2
- package/dist/nextAuth/index.js +3 -3
- package/dist/nextAuth/{authStates.d.ts → states.d.ts} +1 -1
- package/dist/nextAuth/{authStates.js → states.js} +2 -2
- package/package.json +4 -4
package/dist/api/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { response, ResponseType } from './response';
|
|
2
|
-
import { states,
|
|
2
|
+
import { states, StatesType } from './states';
|
|
3
3
|
import { unexpectedError } from './unexpectedError';
|
|
4
|
-
export type { ResponseType,
|
|
4
|
+
export type { ResponseType, StatesType, };
|
|
5
5
|
export { response, states, unexpectedError, };
|
package/dist/api/response.d.ts
CHANGED
package/dist/api/states.d.ts
CHANGED
|
@@ -5,4 +5,4 @@ export declare const states: {
|
|
|
5
5
|
SUCCESS: string;
|
|
6
6
|
VALIDATION_ERROR: string;
|
|
7
7
|
};
|
|
8
|
-
export declare type
|
|
8
|
+
export declare type StatesType = typeof states.ERROR | typeof states.IDLE | typeof states.PENDING | typeof states.SUCCESS | typeof states.VALIDATION_ERROR;
|
|
File without changes
|
|
File without changes
|
package/dist/crud/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { states,
|
|
2
|
-
export type {
|
|
1
|
+
import { states, StatesType } from './states';
|
|
2
|
+
export type { StatesType, };
|
|
3
3
|
export { states, };
|
package/dist/crud/states.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ export declare const states: {
|
|
|
4
4
|
UPDATE: string;
|
|
5
5
|
DELETE: string;
|
|
6
6
|
};
|
|
7
|
-
export declare type
|
|
7
|
+
export declare type StatesType = typeof states.CREATE | typeof states.READ | typeof states.UPDATE | typeof states.DELETE;
|
package/dist/nextAuth/index.d.ts
CHANGED
package/dist/nextAuth/index.js
CHANGED
|
@@ -3,8 +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.isSessionReady = exports.
|
|
7
|
-
var
|
|
8
|
-
Object.defineProperty(exports, "
|
|
6
|
+
exports.isSessionReady = exports.states = void 0;
|
|
7
|
+
var states_1 = require("./states");
|
|
8
|
+
Object.defineProperty(exports, "states", { enumerable: true, get: function () { return states_1.states; } });
|
|
9
9
|
var isSessionReady_1 = __importDefault(require("./isSessionReady"));
|
|
10
10
|
exports.isSessionReady = isSessionReady_1.default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.states = void 0;
|
|
4
|
+
exports.states = {
|
|
5
5
|
AUTHENTICATED: 'authenticated',
|
|
6
6
|
PENDING: 'loading',
|
|
7
7
|
UNAUTHENTICATED: 'unauthenticated',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@8ms/helpers",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/8millionstories-organisation/8ms-helpers-ts.git"
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"@babel/preset-flow": "7.16.7",
|
|
25
25
|
"@babel/preset-typescript": "7.16.7",
|
|
26
26
|
"@types/jest": "27.4.1",
|
|
27
|
-
"@types/lodash": "4.14.
|
|
28
|
-
"@types/node": "17.0.
|
|
27
|
+
"@types/lodash": "4.14.181",
|
|
28
|
+
"@types/node": "17.0.23",
|
|
29
29
|
"babel-jest": "27.5.1",
|
|
30
30
|
"jest": "27.5.1",
|
|
31
31
|
"ts-node": "10.7.0",
|
|
32
32
|
"tslib": "2.3.1",
|
|
33
|
-
"typescript": "4.6.
|
|
33
|
+
"typescript": "4.6.3"
|
|
34
34
|
}
|
|
35
35
|
}
|