recker 1.0.85 → 1.0.86-next.db936ca

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.
@@ -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/version.js CHANGED
@@ -1,4 +1,4 @@
1
- const VERSION = '1.0.85';
1
+ const VERSION = '1.0.86-next.db936ca';
2
2
  let _version = null;
3
3
  export async function getVersion() {
4
4
  if (_version)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "recker",
3
- "version": "1.0.85",
3
+ "version": "1.0.86-next.db936ca",
4
4
  "description": "Multi-Protocol SDK for the AI Era - HTTP, WebSocket, DNS, FTP, SFTP, Telnet, HLS unified with AI providers and MCP tools",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -265,7 +265,6 @@
265
265
  }
266
266
  },
267
267
  "devDependencies": {
268
- "raffel": "^1.0.14",
269
268
  "@hapi/wreck": "^18.1.0",
270
269
  "@types/he": "^1.2.3",
271
270
  "@types/needle": "^3.3.0",
@@ -290,6 +289,7 @@
290
289
  "node-fetch": "^3.3.2",
291
290
  "picocolors": "^1.1.1",
292
291
  "popsicle": "^12.1.2",
292
+ "raffel": "^1.0.18",
293
293
  "serve": "^14.2.6",
294
294
  "socks": "^2.8.7",
295
295
  "ssh2-sftp-client": "^12.1.0",