@theshelf/http 0.0.2 → 0.0.4
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/Client.d.ts +1 -1
- package/dist/Client.js +1 -1
- package/dist/errors/UnknownImplementation.d.ts +1 -1
- package/dist/errors/UnknownImplementation.js +1 -1
- package/dist/implementation.d.ts +1 -1
- package/dist/implementation.js +2 -2
- package/dist/implementations/fetch/Fetch.d.ts +1 -1
- package/dist/implementations/fetch/Fetch.js +1 -1
- package/dist/implementations/fetch/create.d.ts +1 -1
- package/dist/implementations/fetch/create.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/package.json +4 -1
package/dist/Client.d.ts
CHANGED
package/dist/Client.js
CHANGED
package/dist/implementation.d.ts
CHANGED
package/dist/implementation.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import UnknownImplementation from './errors/UnknownImplementation';
|
|
2
|
-
import createFetch from './implementations/fetch/create';
|
|
1
|
+
import UnknownImplementation from './errors/UnknownImplementation.js';
|
|
2
|
+
import createFetch from './implementations/fetch/create.js';
|
|
3
3
|
const implementations = new Map([
|
|
4
4
|
['fetch', createFetch]
|
|
5
5
|
]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Http } from '../../definitions/interfaces';
|
|
1
|
+
import type { Http } from '../../definitions/interfaces.js';
|
|
2
2
|
export default class Fetch implements Http {
|
|
3
3
|
get(url: string, headers?: Record<string, string> | undefined): Promise<Response>;
|
|
4
4
|
post(url: string, body: unknown, headers?: Record<string, string> | undefined): Promise<Response>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import Fetch from './Fetch';
|
|
1
|
+
import Fetch from './Fetch.js';
|
|
2
2
|
export default function create(): Fetch;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Client from './Client';
|
|
2
|
-
import implementation from './implementation';
|
|
1
|
+
import Client from './Client.js';
|
|
2
|
+
import implementation from './implementation.js';
|
|
3
3
|
const client = new Client(implementation);
|
|
4
|
-
export * from './definitions/constants';
|
|
4
|
+
export * from './definitions/constants.js';
|
|
5
5
|
export default client;
|
package/package.json
CHANGED