@vercel/sandbox 1.3.1 → 1.3.2
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/LICENSE +1 -1
- package/README.md +10 -6
- package/dist/auth/file.js +9 -1
- package/dist/auth/file.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
# Vercel Sandbox
|
|
2
|
+
|
|
1
3
|
Vercel Sandbox allows you to run arbitrary code in isolated, ephemeral Linux
|
|
2
|
-
VMs.
|
|
4
|
+
VMs. View the documentation [here](https://vercel.com/docs/vercel-sandbox).
|
|
3
5
|
|
|
4
6
|
## Packages
|
|
5
7
|
|
|
6
|
-
- [`@vercel/sandbox`](https://www.npmjs.com/package/@vercel/sandbox) (this package) - The SDK for programmatic access to Vercel Sandbox.
|
|
7
|
-
- [`sandbox`](https://www.npmjs.com/package/sandbox) - The CLI for interacting with Vercel Sandbox from the command line.
|
|
8
|
+
- [`@vercel/sandbox`](https://www.npmjs.com/package/@vercel/sandbox) (this package) - The SDK for programmatic access to Vercel Sandbox. [Source](https://github.com/vercel/sandbox/tree/main/packages/vercel-sandbox) | [Documentation](https://vercel.com/docs/vercel-sandbox/sdk-reference)
|
|
9
|
+
- [`sandbox`](https://www.npmjs.com/package/sandbox) - The CLI for interacting with Vercel Sandbox from the command line. [Source](https://github.com/vercel/sandbox/tree/main/packages/sandbox) | [Documentation](https://vercel.com/docs/vercel-sandbox/cli-reference)
|
|
8
10
|
|
|
9
11
|
## What is a sandbox?
|
|
10
12
|
|
|
@@ -14,8 +16,6 @@ infrastructure][hive] that powers 1M+ builds a day at Vercel.
|
|
|
14
16
|
|
|
15
17
|
## Getting started
|
|
16
18
|
|
|
17
|
-
Vercel Sandbox is in [beta](https://vercel.com/docs/release-phases#beta).
|
|
18
|
-
|
|
19
19
|
To get started, create a new project:
|
|
20
20
|
|
|
21
21
|
```sh
|
|
@@ -204,7 +204,7 @@ Sandbox runs sudo in the following configuration:
|
|
|
204
204
|
- `HOME` is set to `/root` – Executed commands will source root's configuration
|
|
205
205
|
files (e.g. `.gitconfig`, `.bashrc`, etc).
|
|
206
206
|
- Environment variables are not reset before executing the command.
|
|
207
|
-
- `PATH` is left unchanged – sudo won
|
|
207
|
+
- `PATH` is left unchanged – sudo won't change the value of PATH, so local or
|
|
208
208
|
project-specific binaries will still be found.
|
|
209
209
|
|
|
210
210
|
Both these images are based on Amazon Linux 2023. The full package list is
|
|
@@ -213,3 +213,7 @@ available [here](https://docs.aws.amazon.com/linux/al2023/release-notes/all-pack
|
|
|
213
213
|
[create-token]: https://vercel.com/account/settings/tokens
|
|
214
214
|
[hive]: https://vercel.com/blog/a-deep-dive-into-hive-vercels-builds-infrastructure
|
|
215
215
|
[al-2023-packages]: https://docs.aws.amazon.com/linux/al2023/release-notes/all-packages-AL2023.7.html
|
|
216
|
+
|
|
217
|
+
## Authors
|
|
218
|
+
|
|
219
|
+
This library is created by [Vercel](https://vercel.com) team members, with contributions from the [Open Source Community](https://github.com/vercel/sandbox/graphs/contributors) welcome and highly appreciated.
|
package/dist/auth/file.js
CHANGED
|
@@ -28,8 +28,16 @@ const isDirectory = (path) => {
|
|
|
28
28
|
return false;
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
|
-
|
|
31
|
+
/**
|
|
32
|
+
* Returns in which directory the config should be present.
|
|
33
|
+
*
|
|
34
|
+
* @internal The `VERCEL_AUTH_CONFIG_DIR` env var is for testing purposes only
|
|
35
|
+
* and is not part of the public API.
|
|
36
|
+
*/
|
|
32
37
|
const getGlobalPathConfig = () => {
|
|
38
|
+
if (process.env.VERCEL_AUTH_CONFIG_DIR) {
|
|
39
|
+
return process.env.VERCEL_AUTH_CONFIG_DIR;
|
|
40
|
+
}
|
|
33
41
|
const vercelDirectories = (0, xdg_app_paths_1.default)("com.vercel.cli").dataDirs();
|
|
34
42
|
const possibleConfigPaths = [
|
|
35
43
|
...vercelDirectories, // latest vercel directory
|
package/dist/auth/file.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.js","sourceRoot":"","sources":["../../src/auth/file.ts"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"file.js","sourceRoot":"","sources":["../../src/auth/file.ts"],"names":[],"mappings":";;;;;;AAmEA,4CAUC;AA7ED,0DAA6B;AAC7B,sDAAyB;AACzB,qCAAkC;AAClC,kEAAwC;AACxC,6BAAwB;AACxB,+BAA6B;AAE7B,MAAM,OAAO,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC;AAE5E,MAAM,QAAQ,GAAG,OAAC,CAAC,MAAM,CAAC;IACxB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACnC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC1C,SAAS,EAAE,OAAO,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC;AAEH,MAAM,cAAc,GAAG,UAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AAI3C,qCAAqC;AACrC,MAAM,WAAW,GAAG,CAAC,IAAY,EAAW,EAAE;IAC5C,IAAI,CAAC;QACH,OAAO,iBAAE,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC;IAC1C,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,0EAA0E;QAC1E,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,mBAAmB,GAAG,GAAW,EAAE;IACvC,IAAI,OAAO,CAAC,GAAG,CAAC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