@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.
@@ -1,5 +1,5 @@
1
1
  import { response, ResponseType } from './response';
2
- import { states, StateType } from './states';
2
+ import { states, StatesType } from './states';
3
3
  import { unexpectedError } from './unexpectedError';
4
- export type { ResponseType, StateType, };
4
+ export type { ResponseType, StatesType, };
5
5
  export { response, states, unexpectedError, };
@@ -1,7 +1,7 @@
1
- import { StateType } from './states';
1
+ import { StatesType } from './states';
2
2
  export declare type ResponseType = {
3
3
  body: any | null;
4
4
  error: string | null;
5
- status: StateType;
5
+ status: StatesType;
6
6
  };
7
7
  export declare const response: ResponseType;
@@ -5,4 +5,4 @@ export declare const states: {
5
5
  SUCCESS: string;
6
6
  VALIDATION_ERROR: string;
7
7
  };
8
- export declare type StateType = typeof states.ERROR | typeof states.IDLE | typeof states.PENDING | typeof states.SUCCESS | typeof states.VALIDATION_ERROR;
8
+ export declare type StatesType = typeof states.ERROR | typeof states.IDLE | typeof states.PENDING | typeof states.SUCCESS | typeof states.VALIDATION_ERROR;
@@ -1,3 +1,3 @@
1
- import { RequestType } from './types';
1
+ import { RequestType } from './request';
2
2
  export type { RequestType, };
3
3
  export {};
File without changes
File without changes
@@ -1,3 +1,3 @@
1
- import { states, StateType } from './states';
2
- export type { StateType, };
1
+ import { states, StatesType } from './states';
2
+ export type { StatesType, };
3
3
  export { states, };
@@ -4,4 +4,4 @@ export declare const states: {
4
4
  UPDATE: string;
5
5
  DELETE: string;
6
6
  };
7
- export declare type StateType = typeof states.CREATE | typeof states.READ | typeof states.UPDATE | typeof states.DELETE;
7
+ export declare type StatesType = typeof states.CREATE | typeof states.READ | typeof states.UPDATE | typeof states.DELETE;
@@ -1,4 +1,4 @@
1
- import { authStates } from './authStates';
1
+ import { states } from './states';
2
2
  import isSessionReady from './isSessionReady';
3
3
  export type {};
4
- export { authStates, isSessionReady, };
4
+ export { states, isSessionReady, };
@@ -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.authStates = void 0;
7
- var authStates_1 = require("./authStates");
8
- Object.defineProperty(exports, "authStates", { enumerable: true, get: function () { return authStates_1.authStates; } });
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,4 +1,4 @@
1
- export declare const authStates: {
1
+ export declare const states: {
2
2
  AUTHENTICATED: string;
3
3
  PENDING: string;
4
4
  UNAUTHENTICATED: string;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.authStates = void 0;
4
- exports.authStates = {
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.0",
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.180",
28
- "@types/node": "17.0.21",
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.2"
33
+ "typescript": "4.6.3"
34
34
  }
35
35
  }