@vercel/oidc 3.0.2 → 3.0.4
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/CHANGELOG.md +12 -0
- package/dist/index-browser.test.js +2 -2
- package/dist/token-util.js +1 -1
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @vercel/oidc
|
|
2
2
|
|
|
3
|
+
## 3.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix directory permissions so that files can be created under the OIDC data directory in linux ([#14214](https://github.com/vercel/vercel/pull/14214))
|
|
8
|
+
|
|
9
|
+
## 3.0.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- fix(oidc): add `"workflow"` as export condition ([#14103](https://github.com/vercel/vercel/pull/14103))
|
|
14
|
+
|
|
3
15
|
## 3.0.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -26,8 +26,8 @@ var DefaultImports = __toESM(require("./index"));
|
|
|
26
26
|
var BrowserImports = __toESM(require("./index-browser"));
|
|
27
27
|
(0, import_vitest.describe)("browser export", () => {
|
|
28
28
|
(0, import_vitest.test)("should match the default export", async () => {
|
|
29
|
-
(0, import_vitest.expect)(Object.keys(BrowserImports)).toStrictEqual(
|
|
30
|
-
Object.keys(DefaultImports)
|
|
29
|
+
(0, import_vitest.expect)(Object.keys(BrowserImports).sort()).toStrictEqual(
|
|
30
|
+
Object.keys(DefaultImports).sort()
|
|
31
31
|
);
|
|
32
32
|
});
|
|
33
33
|
});
|
package/dist/token-util.js
CHANGED
|
@@ -122,7 +122,7 @@ function saveToken(token, projectId) {
|
|
|
122
122
|
}
|
|
123
123
|
const tokenPath = path.join(dir, "com.vercel.token", `${projectId}.json`);
|
|
124
124
|
const tokenJson = JSON.stringify(token);
|
|
125
|
-
fs.mkdirSync(path.dirname(tokenPath), { mode:
|
|
125
|
+
fs.mkdirSync(path.dirname(tokenPath), { mode: 504, recursive: true });
|
|
126
126
|
fs.writeFileSync(tokenPath, tokenJson);
|
|
127
127
|
fs.chmodSync(tokenPath, 432);
|
|
128
128
|
return;
|
package/package.json
CHANGED
|
@@ -12,11 +12,12 @@
|
|
|
12
12
|
".": {
|
|
13
13
|
"browser": "./dist/index-browser.js",
|
|
14
14
|
"react-native": "./dist/index-browser.js",
|
|
15
|
+
"workflow": "./dist/index-browser.js",
|
|
15
16
|
"import": "./dist/index.js",
|
|
16
17
|
"require": "./dist/index.js"
|
|
17
18
|
}
|
|
18
19
|
},
|
|
19
|
-
"version": "3.0.
|
|
20
|
+
"version": "3.0.4",
|
|
20
21
|
"repository": {
|
|
21
22
|
"directory": "packages/oidc",
|
|
22
23
|
"type": "git",
|