@azure/core-auth 1.8.1-alpha.20240924.1 → 1.8.1-alpha.20240926.5

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.
Files changed (2) hide show
  1. package/README.md +6 -6
  2. package/package.json +8 -8
package/README.md CHANGED
@@ -26,8 +26,8 @@ The `AzureSASCredential` is a static signature-based credential that supports up
26
26
 
27
27
  ### AzureKeyCredential
28
28
 
29
- ```js
30
- const { AzureKeyCredential } = require("@azure/core-auth");
29
+ ```ts snippet:azure_key_credential
30
+ import { AzureKeyCredential } from "@azure/core-auth";
31
31
 
32
32
  const credential = new AzureKeyCredential("secret value");
33
33
  // prints: "secret value"
@@ -39,8 +39,8 @@ console.log(credential.key);
39
39
 
40
40
  ### AzureNamedKeyCredential
41
41
 
42
- ```js
43
- const { AzureNamedKeyCredential } = require("@azure/core-auth");
42
+ ```ts snippet:azure_named_key_credential
43
+ import { AzureNamedKeyCredential } from "@azure/core-auth";
44
44
 
45
45
  const credential = new AzureNamedKeyCredential("ManagedPolicy", "secret value");
46
46
  // prints: "ManagedPolicy, secret value"
@@ -52,8 +52,8 @@ console.log(`${credential.name}, ${credential.key}`);
52
52
 
53
53
  ### AzureSASCredential
54
54
 
55
- ```js
56
- const { AzureSASCredential } = require("@azure/core-auth");
55
+ ```ts snippet:azure_sas_credential
56
+ import { AzureSASCredential } from "@azure/core-auth";
57
57
 
58
58
  const credential = new AzureSASCredential("signature1");
59
59
  // prints: "signature1"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure/core-auth",
3
- "version": "1.8.1-alpha.20240924.1",
3
+ "version": "1.8.1-alpha.20240926.5",
4
4
  "description": "Provides low-level interfaces and helper methods for authentication in Azure SDK",
5
5
  "sdk-type": "client",
6
6
  "type": "module",
@@ -53,11 +53,11 @@
53
53
  "scripts": {
54
54
  "build:samples": "echo Obsolete",
55
55
  "build:test": "echo skipped. actual commands inlined in browser test scripts",
56
- "build": "npm run clean && tshy && dev-tool run extract-api",
56
+ "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
57
57
  "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}\"",
58
58
  "clean": "rimraf --glob dist dist-* temp types *.tgz *.log",
59
59
  "execute:samples": "echo skipped",
60
- "extract-api": "tshy && dev-tool run extract-api",
60
+ "extract-api": "dev-tool run build-package && dev-tool run extract-api",
61
61
  "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"",
62
62
  "integration-test:browser": "echo skipped",
63
63
  "integration-test:node": "echo skipped",
@@ -66,11 +66,12 @@
66
66
  "lint": "eslint package.json api-extractor.json src test",
67
67
  "pack": "npm pack 2>&1",
68
68
  "test:browser": "npm run clean && npm run unit-test:browser && npm run integration-test:browser",
69
- "test:node": "npm run clean && tshy && npm run unit-test:node && npm run integration-test:node",
70
- "test": "npm run clean && tshy && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test",
71
- "unit-test:browser": "npm run clean && tshy && dev-tool run build-test && dev-tool run test:vitest --no-test-proxy --browser",
69
+ "test:node": "npm run clean && dev-tool run build-package && npm run unit-test:node && npm run integration-test:node",
70
+ "test": "npm run clean && dev-tool run build-package && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test",
71
+ "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",
72
72
  "unit-test:node": "dev-tool run test:vitest --no-test-proxy",
73
- "unit-test": "npm run unit-test:node && npm run unit-test:browser"
73
+ "unit-test": "npm run unit-test:node && npm run unit-test:browser",
74
+ "update-snippets": "dev-tool run update-snippets"
74
75
  },
75
76
  "dependencies": {
76
77
  "@azure/abort-controller": "^2.0.0",
@@ -87,7 +88,6 @@
87
88
  "eslint": "^9.9.0",
88
89
  "playwright": "^1.41.2",
89
90
  "rimraf": "^5.0.5",
90
- "tshy": "^2.0.0",
91
91
  "typescript": "~5.6.2",
92
92
  "vitest": "^2.0.5"
93
93
  },