@scrapa/sdk 0.1.0 → 0.1.1
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 +2 -2
- package/dist/errors.d.ts +1 -1
- package/dist/generated/operations.d.ts +3 -3
- package/dist/index.d.ts +7 -7
- package/package.json +2 -2
package/dist/client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type UsageMeta } from "./generated/contract.
|
|
2
|
-
import { GeneratedOperations } from "./generated/operations.
|
|
1
|
+
import { type UsageMeta } from "./generated/contract.js";
|
|
2
|
+
import { GeneratedOperations } from "./generated/operations.js";
|
|
3
3
|
export interface ScrapaOptions {
|
|
4
4
|
/** An `sc_` key from the console. */
|
|
5
5
|
apiKey: string;
|
package/dist/errors.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ErrorCode } from "./generated/contract.
|
|
1
|
+
import { type ErrorCode } from "./generated/contract.js";
|
|
2
2
|
/** Failures that never reached the API, so they carry no server code. */
|
|
3
3
|
export type ClientErrorCode = "NETWORK_ERROR" | "TIMEOUT";
|
|
4
4
|
export interface ScrapaErrorInit {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { RequestOptions, RequestSpec } from "../client.
|
|
2
|
-
import type { BatchDto, BatchQuoteDto, CreatedBatchDto, LiveSessionDto, ScrapeQuoteDto, ScrapeResultDto, SearchResultDto, SessionDto, SessionQuoteDto, UsageDto } from "./contract.
|
|
3
|
-
import type { CancelBatchParams, CloseSessionParams, CreateBatchParams, CreateSessionParams, GetBatchParams, GetSessionParams, ListBatchesParams, ListSessionsParams, QuoteBatchParams, QuoteScrapeParams, QuoteSessionParams, ScrapeParams, SearchParams } from "./params.
|
|
1
|
+
import type { RequestOptions, RequestSpec } from "../client.js";
|
|
2
|
+
import type { BatchDto, BatchQuoteDto, CreatedBatchDto, LiveSessionDto, ScrapeQuoteDto, ScrapeResultDto, SearchResultDto, SessionDto, SessionQuoteDto, UsageDto } from "./contract.js";
|
|
3
|
+
import type { CancelBatchParams, CloseSessionParams, CreateBatchParams, CreateSessionParams, GetBatchParams, GetSessionParams, ListBatchesParams, ListSessionsParams, QuoteBatchParams, QuoteScrapeParams, QuoteSessionParams, ScrapeParams, SearchParams } from "./params.js";
|
|
4
4
|
/** The version this client reports in `x-scrapa-client`. */
|
|
5
5
|
export declare const SDK_VERSION = "0.1.0";
|
|
6
6
|
/** The hosted API. */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { Scrapa } from "./client.
|
|
2
|
-
export type { RequestOptions, RequestSpec, ScrapaOptions } from "./client.
|
|
3
|
-
export { ScrapaError } from "./errors.
|
|
4
|
-
export type { ClientErrorCode, ScrapaErrorInit } from "./errors.
|
|
5
|
-
export { DEFAULT_BASE_URL, SDK_VERSION } from "./generated/operations.
|
|
6
|
-
export * from "./generated/contract.
|
|
7
|
-
export type * from "./generated/params.
|
|
1
|
+
export { Scrapa } from "./client.js";
|
|
2
|
+
export type { RequestOptions, RequestSpec, ScrapaOptions } from "./client.js";
|
|
3
|
+
export { ScrapaError } from "./errors.js";
|
|
4
|
+
export type { ClientErrorCode, ScrapaErrorInit } from "./errors.js";
|
|
5
|
+
export { DEFAULT_BASE_URL, SDK_VERSION } from "./generated/operations.js";
|
|
6
|
+
export * from "./generated/contract.js";
|
|
7
|
+
export type * from "./generated/params.js";
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scrapa/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Official TypeScript client for scrapa.app — scrape any web page as markdown, HTML, text, links, a screenshot or a PDF, search the web, and drive a real browser over CDP.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://scrapa.app",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"node": ">=20"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
|
-
"build": "tsc -p tsconfig.build.json",
|
|
43
|
+
"build": "tsc -p tsconfig.build.json && bun run scripts/rewrite-declaration-extensions.ts",
|
|
44
44
|
"prepack": "bun run build",
|
|
45
45
|
"release": "bun run typecheck && bun run test && bun publish",
|
|
46
46
|
"typecheck": "tsc --noEmit",
|