@hkdigital/lib-core 0.5.41 → 0.5.43

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,7 +1,7 @@
1
1
  import * as expect from '../../util/expect.js';
2
2
  import { rethrow } from '../../util/exceptions.js';
3
3
  import { HkPromise } from '../../generic/promises.js';
4
- import { httpGet } from '../../network/http/index.js';
4
+ import { httpGet } from '../../network/http.js';
5
5
  import { v } from '../../valibot/valibot.js';
6
6
  import { error } from '@sveltejs/kit';
7
7
 
@@ -0,0 +1,4 @@
1
+ export const HTTP_SEE_OTHER: 303;
2
+ export const HTTP_BAD_REQUEST: 400;
3
+ export const HTTP_UNAUTHORIZED: 401;
4
+ export const HTTP_INTERNAL_SERVER_ERROR: 500;
@@ -0,0 +1,4 @@
1
+ export const HTTP_SEE_OTHER = 303;
2
+ export const HTTP_BAD_REQUEST = 400;
3
+ export const HTTP_UNAUTHORIZED = 401;
4
+ export const HTTP_INTERNAL_SERVER_ERROR = 500;
@@ -1,6 +1,8 @@
1
- export * from "./http/headers.js";
1
+ export * from "./http/caching.js";
2
2
  export * from "./http/errors.js";
3
- export * from "./http/url.js";
4
- export * from "./http/response.js";
3
+ export * from "./http/headers.js";
5
4
  export * from "./http/http-request.js";
5
+ export * from "./http/http-status-codes.js";
6
6
  export * from "./http/json-request.js";
7
+ export * from "./http/response.js";
8
+ export * from "./http/url.js";
@@ -1,6 +1,8 @@
1
- export * from './http/headers.js';
1
+ export * from './http/caching.js';
2
2
  export * from './http/errors.js';
3
- export * from './http/url.js';
4
- export * from './http/response.js';
3
+ export * from './http/headers.js';
5
4
  export * from './http/http-request.js';
6
- export * from './http/json-request.js';
5
+ export * from './http/http-status-codes.js';
6
+ export * from './http/json-request.js';
7
+ export * from './http/response.js';
8
+ export * from './http/url.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hkdigital/lib-core",
3
- "version": "0.5.41",
3
+ "version": "0.5.43",
4
4
  "author": {
5
5
  "name": "HKdigital",
6
6
  "url": "https://hkdigital.nl"
@@ -1,6 +0,0 @@
1
- export * from "./headers.js";
2
- export * from "./errors.js";
3
- export * from "./url.js";
4
- export * from "./response.js";
5
- export * from "./http-request.js";
6
- export * from "./json-request.js";
@@ -1,22 +0,0 @@
1
- // import * as expect from '../expect/index.js';
2
-
3
- // import {
4
- // ResponseError,
5
- // AbortError,
6
- // TimeoutError,
7
- // TypeOrValueError
8
- // } from '../../errors/index.js';
9
-
10
- // import { setRequestHeaders } from './headers.js';
11
- // import { getErrorFromResponse } from './errors.js';
12
-
13
- export * from './headers.js';
14
- export * from './errors.js';
15
- export * from './url.js';
16
- export * from './response.js';
17
- export * from './http-request.js';
18
- export * from './json-request.js';
19
-
20
- // import { CONTENT_TYPE, METHOD_GET, METHOD_POST } from '../../constants/http.js';
21
-
22
- // import { APPLICATION_JSON } from '../../constants/mime.js';