@azure/synapse-artifacts 1.0.0-alpha.20250221.1 → 1.0.0-alpha.20250225.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/README.md CHANGED
@@ -21,18 +21,18 @@ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUP
21
21
 
22
22
  ## Examples
23
23
 
24
- ```ts
24
+ ```ts snippet:ReadmeSampleCreateClient_Node
25
25
  import { ArtifactsClient } from "@azure/synapse-artifacts";
26
26
  import { DefaultAzureCredential } from "@azure/identity";
27
27
 
28
- export async function main(): Promise<void> {
29
- const credential = new DefaultAzureCredential();
28
+ const client = new ArtifactsClient(
29
+ new DefaultAzureCredential(),
30
+ "https://mysynapse.dev.azuresynapse.net",
31
+ );
30
32
 
31
- const client = new ArtifactsClient(credential, "https://mysynapse.dev.azuresynapse.net");
32
- const list = await client.pipelineOperations.listPipelinesByWorkspace();
33
- for await (const item of list) {
34
- console.log("item:", item);
35
- }
33
+ const pipelinesByWorkspace = client.pipelineOperations.listPipelinesByWorkspace();
34
+ for await (const pipeline of pipelinesByWorkspace) {
35
+ console.log(`Pipeline ID: ${pipeline.id}`);
36
36
  }
37
37
  ```
38
38
 
@@ -40,13 +40,11 @@ export async function main(): Promise<void> {
40
40
 
41
41
  - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
42
42
 
43
-
44
-
45
43
  ## Troubleshooting
46
44
 
47
45
  Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
48
46
 
49
- ```ts
47
+ ```ts snippet:SetLogLevel
50
48
  import { setLogLevel } from "@azure/logger";
51
49
 
52
50
  setLogLevel("info");
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.50.0"
8
+ "packageVersion": "7.50.1"
9
9
  }
10
10
  ]
11
11
  }
package/package.json CHANGED
@@ -3,16 +3,16 @@
3
3
  "author": "Microsoft Corporation",
4
4
  "description": "A generated SDK for ArtifactsClient.",
5
5
  "sdk-type": "client",
6
- "version": "1.0.0-alpha.20250221.1",
6
+ "version": "1.0.0-alpha.20250225.1",
7
7
  "homepage": "https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/synapse/synapse-artifacts/README.md",
8
8
  "repository": "github:Azure/azure-sdk-for-js",
9
9
  "dependencies": {
10
10
  "@azure/abort-controller": "^2.1.2",
11
11
  "@azure/core-auth": "^1.9.0",
12
12
  "@azure/core-client": "^1.9.2",
13
- "@azure/core-lro": "^2.5.3",
13
+ "@azure/core-lro": "^2.7.2",
14
14
  "@azure/core-paging": "^1.6.2",
15
- "@azure/core-rest-pipeline": "^1.18.0",
15
+ "@azure/core-rest-pipeline": "^1.19.0",
16
16
  "@azure/core-tracing": "^1.2.0",
17
17
  "tslib": "^2.8.1"
18
18
  },
@@ -38,14 +38,15 @@
38
38
  "@azure-tools/test-utils-vitest": ">=1.0.0-alpha <1.0.0-alphb",
39
39
  "@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
40
40
  "@azure/eslint-plugin-azure-sdk": ">=3.0.0-alpha <3.0.0-alphb",
41
+ "@azure/logger": "^1.1.4",
41
42
  "@types/node": "^18.0.0",
42
- "@vitest/browser": "^3.0.3",
43
- "@vitest/coverage-istanbul": "^3.0.3",
43
+ "@vitest/browser": "^3.0.6",
44
+ "@vitest/coverage-istanbul": "^3.0.6",
44
45
  "dotenv": "^16.0.0",
45
46
  "eslint": "^9.9.0",
46
- "playwright": "^1.49.0",
47
+ "playwright": "^1.50.1",
47
48
  "typescript": "~5.7.2",
48
- "vitest": "^3.0.3"
49
+ "vitest": "^3.0.6"
49
50
  },
50
51
  "bugs": {
51
52
  "url": "https://github.com/Azure/azure-sdk-for-js/issues"
@@ -79,7 +80,7 @@
79
80
  "unit-test": "npm run unit-test:node && npm run unit-test:browser",
80
81
  "unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser",
81
82
  "unit-test:node": "dev-tool run test:vitest",
82
- "update-snippets": "echo skipped"
83
+ "update-snippets": "dev-tool run update-snippets"
83
84
  },
84
85
  "sideEffects": false,
85
86
  "autoPublish": true,
@@ -97,6 +98,7 @@
97
98
  },
98
99
  "type": "module",
99
100
  "tshy": {
101
+ "project": "./tsconfig.src.json",
100
102
  "exports": {
101
103
  "./package.json": "./package.json",
102
104
  ".": "./src/index.ts"
@@ -109,8 +111,7 @@
109
111
  "browser",
110
112
  "react-native"
111
113
  ],
112
- "selfLink": false,
113
- "project": "./tsconfig.src.json"
114
+ "selfLink": false
114
115
  },
115
116
  "exports": {
116
117
  "./package.json": "./package.json",
@@ -132,5 +133,6 @@
132
133
  "default": "./dist/commonjs/index.js"
133
134
  }
134
135
  }
135
- }
136
+ },
137
+ "react-native": "./dist/react-native/index.js"
136
138
  }