diff --git a/lib/git.js b/lib/git.js index b5c051ed..b05cc9a2 100644 --- a/lib/git.js +++ b/lib/git.js @@ -26,6 +26,12 @@ function init(action) { try { (0, core_1.info)(`Deploying using ${action.tokenType}… 🔑`); (0, core_1.info)('Configuring git…'); + try { + yield (0, execute_1.execute)(`git config --global --add safe.directory "${action.workspace}"`, action.workspace, action.silent); + } + catch (_a) { + (0, core_1.info)('Unable to set workspace as a safe directory…'); + } yield (0, execute_1.execute)(`git config user.name "${action.name}"`, action.workspace, action.silent); yield (0, execute_1.execute)(`git config user.email "${action.email}"`, action.workspace, action.silent); yield (0, execute_1.execute)(`git config core.ignorecase false`, action.workspace, action.silent); @@ -40,7 +46,7 @@ function init(action) { throw new Error(); } } - catch (_a) { + catch (_b) { (0, core_1.info)('Unable to unset previous git config authentication as it may not exist, continuing…'); } try { @@ -49,7 +55,7 @@ function init(action) { throw new Error(); } } - catch (_b) { + catch (_c) { (0, core_1.info)('Attempted to remove origin but failed, continuing…'); } yield (0, execute_1.execute)(`git remote add origin ${action.repositoryPath}`, action.workspace, action.silent); diff --git a/node_modules/@types/node/README.md b/node_modules/@types/node/README.md index cb40e886..2533247d 100755 --- a/node_modules/@types/node/README.md +++ b/node_modules/@types/node/README.md @@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://nodejs.org/). Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node. ### Additional Details - * Last updated: Wed, 23 Mar 2022 17:01:45 GMT + * Last updated: Mon, 18 Apr 2022 16:31:18 GMT * Dependencies: none * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require` diff --git a/node_modules/@types/node/buffer.d.ts b/node_modules/@types/node/buffer.d.ts index 1a26043c..18be30d2 100755 --- a/node_modules/@types/node/buffer.d.ts +++ b/node_modules/@types/node/buffer.d.ts @@ -443,7 +443,7 @@ declare module 'buffer' { * Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_INVALID_ARG_VALUE` is thrown. * * The underlying memory for `Buffer` instances created in this way is _not_ - * _initialized_. The contents of the newly created `Buffer` are unknown and_may contain sensitive data_. Use `Buffer.alloc()` instead to initialize`Buffer` instances with zeroes. + * _initialized_. The contents of the newly created `Buffer` are unknown and _may contain sensitive data_. Use `Buffer.alloc()` instead to initialize`Buffer` instances with zeroes. * * ```js * import { Buffer } from 'buffer'; diff --git a/node_modules/@types/node/net.d.ts b/node_modules/@types/node/net.d.ts index f24b16ca..f2c10a23 100755 --- a/node_modules/@types/node/net.d.ts +++ b/node_modules/@types/node/net.d.ts @@ -59,6 +59,7 @@ declare module 'net' { path: string; } type SocketConnectOpts = TcpSocketConnectOpts | IpcSocketConnectOpts; + type SocketReadyState = 'opening' | 'open' | 'readOnly' | 'writeOnly' | 'closed'; /** * This class is an abstraction of a TCP socket or a streaming `IPC` endpoint * (uses named pipes on Windows, and Unix domain sockets otherwise). It is also @@ -262,6 +263,12 @@ declare module 'net' { * @since v0.9.6 */ readonly localPort?: number; + /** + * This property represents the state of the connection as a string. + * @see {https://nodejs.org/api/net.html#socketreadystate} + * @since v0.5.0 + */ + readonly readyState: SocketReadyState; /** * The string representation of the remote IP address. For example,`'74.125.127.100'` or `'2001:4860:a005::68'`. Value may be `undefined` if * the socket is destroyed (for example, if the client disconnected). diff --git a/node_modules/@types/node/package.json b/node_modules/@types/node/package.json index 7662dffd..9f6d5446 100755 --- a/node_modules/@types/node/package.json +++ b/node_modules/@types/node/package.json @@ -1,6 +1,6 @@ { "name": "@types/node", - "version": "17.0.23", + "version": "17.0.25", "description": "TypeScript definitions for Node.js", "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node", "license": "MIT", @@ -215,6 +215,6 @@ }, "scripts": {}, "dependencies": {}, - "typesPublisherContentHash": "31d9626c2d3ccc7c4b4e0d91e1ed56f52997cd7409e001330de7b00feb84ad8b", + "typesPublisherContentHash": "825e787f0a7c6fde372f102a7e96d0c64b5cb4ff7c07557941bedf371f097b76", "typeScriptVersion": "3.9" } \ No newline at end of file