recker 1.0.85 → 1.0.86
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/browser/browser/index.d.ts +2 -0
- package/dist/browser/browser/index.js +1 -0
- package/dist/browser/browser/recker.d.ts +2 -0
- package/dist/browser/browser/recker.js +2 -0
- package/dist/browser/index.d.ts +2 -0
- package/dist/browser/index.iife.min.js +79 -79
- package/dist/browser/index.js +1 -0
- package/dist/browser/index.min.js +79 -79
- package/dist/browser/index.umd.min.js +79 -79
- package/dist/browser/recker.d.ts +2 -0
- package/dist/browser/recker.js +2 -0
- package/dist/version.js +1 -1
- package/package.json +2 -2
|
@@ -32,5 +32,7 @@ export * from '../constants/http-status.js';
|
|
|
32
32
|
export * from './crypto.js';
|
|
33
33
|
export * from './cache.js';
|
|
34
34
|
export * from './compression.js';
|
|
35
|
+
export { createRaffelClient } from 'raffel/client/browser';
|
|
36
|
+
export type { RaffelClientOptions, RaffelClient, ClientStream as RaffelClientStream, CallOptions as RaffelCallOptions, ClientChannel as RaffelClientChannel, ClientChannelMember as RaffelClientChannelMember, } from 'raffel/client/browser';
|
|
35
37
|
export * from './recker.js';
|
|
36
38
|
export { Client as Recker } from '../core/client.js';
|
|
@@ -32,5 +32,6 @@ export * from '../constants/http-status.js';
|
|
|
32
32
|
export * from './crypto.js';
|
|
33
33
|
export * from './cache.js';
|
|
34
34
|
export * from './compression.js';
|
|
35
|
+
export { createRaffelClient } from 'raffel/client/browser';
|
|
35
36
|
export * from './recker.js';
|
|
36
37
|
export { Client as Recker } from '../core/client.js';
|
|
@@ -4,6 +4,7 @@ import type { RequestOptions } from '../types/index.js';
|
|
|
4
4
|
import { analyzeSeo } from '../seo/analyzer.js';
|
|
5
5
|
import { createAI } from '../ai/index.js';
|
|
6
6
|
import { simulateNetwork } from '../plugins/network-simulation.js';
|
|
7
|
+
import type { RaffelClientOptions, RaffelClient } from 'raffel/client/browser';
|
|
7
8
|
export declare function get<T = unknown>(url: string, options?: RequestOptions): RequestPromise<T>;
|
|
8
9
|
export declare function post<T = unknown>(url: string, options?: RequestOptions): RequestPromise<T>;
|
|
9
10
|
export declare function post<T = unknown>(url: string, body?: unknown, options?: RequestOptions): RequestPromise<T>;
|
|
@@ -26,6 +27,7 @@ export declare const recker: {
|
|
|
26
27
|
options: typeof options;
|
|
27
28
|
purge: typeof purge;
|
|
28
29
|
ws: typeof ws;
|
|
30
|
+
raffel: (url: string, options?: Omit<RaffelClientOptions, "url">) => RaffelClient;
|
|
29
31
|
seo: typeof analyzeSeo;
|
|
30
32
|
ai: typeof createAI;
|
|
31
33
|
har: import("../plugins/har-recorder.js").HarRecorder;
|
|
@@ -4,6 +4,7 @@ import { analyzeSeo } from '../seo/analyzer.js';
|
|
|
4
4
|
import { createAI } from '../ai/index.js';
|
|
5
5
|
import { harRecorder } from '../plugins/har-recorder.js';
|
|
6
6
|
import { simulateNetwork } from '../plugins/network-simulation.js';
|
|
7
|
+
import { createRaffelClient } from 'raffel/client/browser';
|
|
7
8
|
let _defaultClient = null;
|
|
8
9
|
const REQUEST_OPTIONS_HINTS = new Set([
|
|
9
10
|
'method',
|
|
@@ -98,6 +99,7 @@ export const recker = {
|
|
|
98
99
|
options,
|
|
99
100
|
purge,
|
|
100
101
|
ws,
|
|
102
|
+
raffel: (url, options) => createRaffelClient({ ...options, url }),
|
|
101
103
|
seo: analyzeSeo,
|
|
102
104
|
ai: createAI,
|
|
103
105
|
har: harRecorder,
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -32,5 +32,7 @@ export * from '../constants/http-status.js';
|
|
|
32
32
|
export * from './crypto.js';
|
|
33
33
|
export * from './cache.js';
|
|
34
34
|
export * from './compression.js';
|
|
35
|
+
export { createRaffelClient } from 'raffel/client/browser';
|
|
36
|
+
export type { RaffelClientOptions, RaffelClient, ClientStream as RaffelClientStream, CallOptions as RaffelCallOptions, ClientChannel as RaffelClientChannel, ClientChannelMember as RaffelClientChannelMember, } from 'raffel/client/browser';
|
|
35
37
|
export * from './recker.js';
|
|
36
38
|
export { Client as Recker } from '../core/client.js';
|