@openstax/ts-utils 1.24.4 → 1.24.6

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.
@@ -79,9 +79,6 @@ const makeRouteClient = (initializer, config, route, appProvider) => {
79
79
  if (response.status === 401) {
80
80
  throw new errors_1.UnauthorizedError();
81
81
  }
82
- if (response.status === 403) {
83
- throw new errors_1.ForbiddenError();
84
- }
85
82
  if (response.status === 440) {
86
83
  throw new errors_1.SessionExpiredError();
87
84
  }
@@ -1,5 +1,5 @@
1
1
  import { IndexOptions, SearchOptions } from '.';
2
- export declare const memorySearchTheBadWay: <T>({ store }: {
2
+ export declare const memorySearchTheBadWay: () => <T>({ store }: {
3
3
  store: {
4
4
  loadAllDocumentsTheBadWay: () => Promise<T[]>;
5
5
  };
@@ -13,7 +13,7 @@ var MatchType;
13
13
  MatchType[MatchType["Should"] = 2] = "Should";
14
14
  })(MatchType || (MatchType = {}));
15
15
  const resolveField = (document, field) => field.key.toString().split('.').reduce((result, key) => result[key], document);
16
- const memorySearchTheBadWay = ({ store }) => {
16
+ const memorySearchTheBadWay = () => ({ store }) => {
17
17
  return {
18
18
  ensureIndexCreated: async () => undefined,
19
19
  index: async (_options) => undefined,