@azure/core-rest-pipeline
Advanced tools
Comparing version 1.17.1-alpha.20240924.1 to 1.17.1-alpha.20240925.5
{ | ||
"name": "@azure/core-rest-pipeline", | ||
"version": "1.17.1-alpha.20240924.1", | ||
"version": "1.17.1-alpha.20240925.5", | ||
"description": "Isomorphic client library for making HTTP requests in node.js and browser.", | ||
@@ -56,7 +56,7 @@ "sdk-type": "client", | ||
"build:test": "echo skipped. actual commands inlined in browser test scripts", | ||
"build": "npm run clean && tshy && dev-tool run extract-api", | ||
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api", | ||
"check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"", | ||
"clean": "rimraf --glob dist dist-* temp types *.tgz *.log", | ||
"execute:samples": "echo skipped", | ||
"extract-api": "tshy && dev-tool run extract-api", | ||
"extract-api": "dev-tool run build-package && dev-tool run extract-api", | ||
"format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"samples-dev/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"", | ||
@@ -70,7 +70,8 @@ "integration-test:browser": "echo skipped", | ||
"test:browser": "npm run clean && npm run unit-test:browser && npm run integration-test:browser", | ||
"test:node": "npm run clean && tshy && npm run unit-test:node && npm run integration-test:node", | ||
"test": "npm run clean && tshy && npm run unit-test:node && dev-tool run build-test && npm run unit-test:browser && npm run integration-test", | ||
"unit-test:browser": "npm run clean && tshy && dev-tool run build-test && dev-tool run test:vitest --no-test-proxy --browser", | ||
"test:node": "npm run clean && dev-tool run build-package && npm run unit-test:node && npm run integration-test:node", | ||
"test": "npm run clean && dev-tool run build-package && npm run unit-test:node && dev-tool run build-test && npm run unit-test:browser && npm run integration-test", | ||
"unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --no-test-proxy --browser", | ||
"unit-test:node": "dev-tool run test:vitest --no-test-proxy", | ||
"unit-test": "npm run unit-test:node && npm run unit-test:browser" | ||
"unit-test": "npm run unit-test:node && npm run unit-test:browser", | ||
"update-snippets": "dev-tool run update-snippets" | ||
}, | ||
@@ -115,3 +116,2 @@ "//metadata": { | ||
"rimraf": "^5.0.5", | ||
"tshy": "^2.0.0", | ||
"typescript": "~5.6.2", | ||
@@ -118,0 +118,0 @@ "vitest": "^2.0.5" |
@@ -34,3 +34,3 @@ # Azure Core HTTP client library for JavaScript | ||
```ts | ||
```ts snippet:send_request | ||
export type SendRequest = (request: PipelineRequest) => Promise<PipelineResponse>; | ||
@@ -43,3 +43,3 @@ ``` | ||
```ts | ||
```ts snippet:http_request | ||
export interface HttpClient { | ||
@@ -59,3 +59,3 @@ /** | ||
```ts | ||
```ts snippet:pipeline_policy | ||
export interface PipelinePolicy { | ||
@@ -68,4 +68,4 @@ /** | ||
* The main method to implement that manipulates a request/response. | ||
* @param request The request being performed. | ||
* @param next The next policy in the pipeline. Must be called to continue the pipeline. | ||
* @param request - The request being performed. | ||
* @param next - The next policy in the pipeline. Must be called to continue the pipeline. | ||
*/ | ||
@@ -82,3 +82,3 @@ sendRequest(request: PipelineRequest, next: SendRequest): Promise<PipelineResponse>; | ||
```ts | ||
```ts snippet:custom_policy | ||
const customPolicy = { | ||
@@ -94,3 +94,3 @@ name: "My wonderful policy", | ||
return result; | ||
} | ||
}, | ||
}; | ||
@@ -109,3 +109,3 @@ ``` | ||
```ts | ||
```ts snippet:pipeline | ||
export interface Pipeline { | ||
@@ -133,3 +133,3 @@ addPolicy(policy: PipelinePolicy, options?: AddPolicyOptions): void; | ||
```ts | ||
```ts snippet:add_policy_options | ||
export interface AddPolicyOptions { | ||
@@ -136,0 +136,0 @@ beforePolicies?: string[]; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1994740
12