@napi-rs/simple-git
Advanced tools
+2
-0
@@ -279,2 +279,3 @@ /* auto-generated by NAPI-RS */ | ||
| * everything (effectively the same as not declaring a limit depth). | ||
| * | ||
| */ | ||
@@ -501,2 +502,3 @@ depth(depth: number): this | ||
| * const builder = new RepoBuilder() | ||
| * | ||
| * const remoteCallbacks = new RemoteCallbacks() | ||
@@ -503,0 +505,0 @@ * .credentials((cred) => { |
+141
-26
@@ -81,3 +81,8 @@ // prettier-ignore | ||
| try { | ||
| return require('@napi-rs/simple-git-android-arm64') | ||
| const binding = require('@napi-rs/simple-git-android-arm64') | ||
| const bindingPackageVersion = require('@napi-rs/simple-git-android-arm64/package.json').version | ||
| if (bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
| return binding | ||
| } catch (e) { | ||
@@ -93,3 +98,8 @@ loadErrors.push(e) | ||
| try { | ||
| return require('@napi-rs/simple-git-android-arm-eabi') | ||
| const binding = require('@napi-rs/simple-git-android-arm-eabi') | ||
| const bindingPackageVersion = require('@napi-rs/simple-git-android-arm-eabi/package.json').version | ||
| if (bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
| return binding | ||
| } catch (e) { | ||
@@ -109,3 +119,8 @@ loadErrors.push(e) | ||
| try { | ||
| return require('@napi-rs/simple-git-win32-x64-msvc') | ||
| const binding = require('@napi-rs/simple-git-win32-x64-msvc') | ||
| const bindingPackageVersion = require('@napi-rs/simple-git-win32-x64-msvc/package.json').version | ||
| if (bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
| return binding | ||
| } catch (e) { | ||
@@ -121,3 +136,8 @@ loadErrors.push(e) | ||
| try { | ||
| return require('@napi-rs/simple-git-win32-ia32-msvc') | ||
| const binding = require('@napi-rs/simple-git-win32-ia32-msvc') | ||
| const bindingPackageVersion = require('@napi-rs/simple-git-win32-ia32-msvc/package.json').version | ||
| if (bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
| return binding | ||
| } catch (e) { | ||
@@ -133,3 +153,8 @@ loadErrors.push(e) | ||
| try { | ||
| return require('@napi-rs/simple-git-win32-arm64-msvc') | ||
| const binding = require('@napi-rs/simple-git-win32-arm64-msvc') | ||
| const bindingPackageVersion = require('@napi-rs/simple-git-win32-arm64-msvc/package.json').version | ||
| if (bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
| return binding | ||
| } catch (e) { | ||
@@ -148,3 +173,8 @@ loadErrors.push(e) | ||
| try { | ||
| return require('@napi-rs/simple-git-darwin-universal') | ||
| const binding = require('@napi-rs/simple-git-darwin-universal') | ||
| const bindingPackageVersion = require('@napi-rs/simple-git-darwin-universal/package.json').version | ||
| if (bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
| return binding | ||
| } catch (e) { | ||
@@ -160,3 +190,8 @@ loadErrors.push(e) | ||
| try { | ||
| return require('@napi-rs/simple-git-darwin-x64') | ||
| const binding = require('@napi-rs/simple-git-darwin-x64') | ||
| const bindingPackageVersion = require('@napi-rs/simple-git-darwin-x64/package.json').version | ||
| if (bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
| return binding | ||
| } catch (e) { | ||
@@ -172,3 +207,8 @@ loadErrors.push(e) | ||
| try { | ||
| return require('@napi-rs/simple-git-darwin-arm64') | ||
| const binding = require('@napi-rs/simple-git-darwin-arm64') | ||
| const bindingPackageVersion = require('@napi-rs/simple-git-darwin-arm64/package.json').version | ||
| if (bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
| return binding | ||
| } catch (e) { | ||
@@ -188,3 +228,8 @@ loadErrors.push(e) | ||
| try { | ||
| return require('@napi-rs/simple-git-freebsd-x64') | ||
| const binding = require('@napi-rs/simple-git-freebsd-x64') | ||
| const bindingPackageVersion = require('@napi-rs/simple-git-freebsd-x64/package.json').version | ||
| if (bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
| return binding | ||
| } catch (e) { | ||
@@ -200,3 +245,8 @@ loadErrors.push(e) | ||
| try { | ||
| return require('@napi-rs/simple-git-freebsd-arm64') | ||
| const binding = require('@napi-rs/simple-git-freebsd-arm64') | ||
| const bindingPackageVersion = require('@napi-rs/simple-git-freebsd-arm64/package.json').version | ||
| if (bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
| return binding | ||
| } catch (e) { | ||
@@ -217,3 +267,8 @@ loadErrors.push(e) | ||
| try { | ||
| return require('@napi-rs/simple-git-linux-x64-musl') | ||
| const binding = require('@napi-rs/simple-git-linux-x64-musl') | ||
| const bindingPackageVersion = require('@napi-rs/simple-git-linux-x64-musl/package.json').version | ||
| if (bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
| return binding | ||
| } catch (e) { | ||
@@ -229,3 +284,8 @@ loadErrors.push(e) | ||
| try { | ||
| return require('@napi-rs/simple-git-linux-x64-gnu') | ||
| const binding = require('@napi-rs/simple-git-linux-x64-gnu') | ||
| const bindingPackageVersion = require('@napi-rs/simple-git-linux-x64-gnu/package.json').version | ||
| if (bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
| return binding | ||
| } catch (e) { | ||
@@ -243,3 +303,8 @@ loadErrors.push(e) | ||
| try { | ||
| return require('@napi-rs/simple-git-linux-arm64-musl') | ||
| const binding = require('@napi-rs/simple-git-linux-arm64-musl') | ||
| const bindingPackageVersion = require('@napi-rs/simple-git-linux-arm64-musl/package.json').version | ||
| if (bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
| return binding | ||
| } catch (e) { | ||
@@ -255,3 +320,8 @@ loadErrors.push(e) | ||
| try { | ||
| return require('@napi-rs/simple-git-linux-arm64-gnu') | ||
| const binding = require('@napi-rs/simple-git-linux-arm64-gnu') | ||
| const bindingPackageVersion = require('@napi-rs/simple-git-linux-arm64-gnu/package.json').version | ||
| if (bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
| return binding | ||
| } catch (e) { | ||
@@ -269,3 +339,8 @@ loadErrors.push(e) | ||
| try { | ||
| return require('@napi-rs/simple-git-linux-arm-musleabihf') | ||
| const binding = require('@napi-rs/simple-git-linux-arm-musleabihf') | ||
| const bindingPackageVersion = require('@napi-rs/simple-git-linux-arm-musleabihf/package.json').version | ||
| if (bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
| return binding | ||
| } catch (e) { | ||
@@ -281,3 +356,8 @@ loadErrors.push(e) | ||
| try { | ||
| return require('@napi-rs/simple-git-linux-arm-gnueabihf') | ||
| const binding = require('@napi-rs/simple-git-linux-arm-gnueabihf') | ||
| const bindingPackageVersion = require('@napi-rs/simple-git-linux-arm-gnueabihf/package.json').version | ||
| if (bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
| return binding | ||
| } catch (e) { | ||
@@ -295,3 +375,8 @@ loadErrors.push(e) | ||
| try { | ||
| return require('@napi-rs/simple-git-linux-riscv64-musl') | ||
| const binding = require('@napi-rs/simple-git-linux-riscv64-musl') | ||
| const bindingPackageVersion = require('@napi-rs/simple-git-linux-riscv64-musl/package.json').version | ||
| if (bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
| return binding | ||
| } catch (e) { | ||
@@ -307,3 +392,8 @@ loadErrors.push(e) | ||
| try { | ||
| return require('@napi-rs/simple-git-linux-riscv64-gnu') | ||
| const binding = require('@napi-rs/simple-git-linux-riscv64-gnu') | ||
| const bindingPackageVersion = require('@napi-rs/simple-git-linux-riscv64-gnu/package.json').version | ||
| if (bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
| return binding | ||
| } catch (e) { | ||
@@ -320,3 +410,8 @@ loadErrors.push(e) | ||
| try { | ||
| return require('@napi-rs/simple-git-linux-ppc64-gnu') | ||
| const binding = require('@napi-rs/simple-git-linux-ppc64-gnu') | ||
| const bindingPackageVersion = require('@napi-rs/simple-git-linux-ppc64-gnu/package.json').version | ||
| if (bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
| return binding | ||
| } catch (e) { | ||
@@ -332,3 +427,8 @@ loadErrors.push(e) | ||
| try { | ||
| return require('@napi-rs/simple-git-linux-s390x-gnu') | ||
| const binding = require('@napi-rs/simple-git-linux-s390x-gnu') | ||
| const bindingPackageVersion = require('@napi-rs/simple-git-linux-s390x-gnu/package.json').version | ||
| if (bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
| return binding | ||
| } catch (e) { | ||
@@ -343,3 +443,3 @@ loadErrors.push(e) | ||
| try { | ||
| return require('./simple-git.linux-arm64-ohos.node') | ||
| return require('./simple-git.openharmony-arm64.node') | ||
| } catch (e) { | ||
@@ -349,3 +449,8 @@ loadErrors.push(e) | ||
| try { | ||
| return require('@napi-rs/simple-git-linux-arm64-ohos') | ||
| const binding = require('@napi-rs/simple-git-openharmony-arm64') | ||
| const bindingPackageVersion = require('@napi-rs/simple-git-openharmony-arm64/package.json').version | ||
| if (bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
| return binding | ||
| } catch (e) { | ||
@@ -356,3 +461,3 @@ loadErrors.push(e) | ||
| try { | ||
| return require('./simple-git.linux-x64-ohos.node') | ||
| return require('./simple-git.openharmony-x64.node') | ||
| } catch (e) { | ||
@@ -362,3 +467,8 @@ loadErrors.push(e) | ||
| try { | ||
| return require('@napi-rs/simple-git-linux-x64-ohos') | ||
| const binding = require('@napi-rs/simple-git-openharmony-x64') | ||
| const bindingPackageVersion = require('@napi-rs/simple-git-openharmony-x64/package.json').version | ||
| if (bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
| return binding | ||
| } catch (e) { | ||
@@ -369,3 +479,3 @@ loadErrors.push(e) | ||
| try { | ||
| return require('./simple-git.linux-arm-ohos.node') | ||
| return require('./simple-git.openharmony-arm.node') | ||
| } catch (e) { | ||
@@ -375,3 +485,8 @@ loadErrors.push(e) | ||
| try { | ||
| return require('@napi-rs/simple-git-linux-arm-ohos') | ||
| const binding = require('@napi-rs/simple-git-openharmony-arm') | ||
| const bindingPackageVersion = require('@napi-rs/simple-git-openharmony-arm/package.json').version | ||
| if (bindingPackageVersion !== '0.1.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { | ||
| throw new Error(`Native binding package version mismatch, expected 0.1.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) | ||
| } | ||
| return binding | ||
| } catch (e) { | ||
@@ -378,0 +493,0 @@ loadErrors.push(e) |
+19
-18
| { | ||
| "name": "@napi-rs/simple-git", | ||
| "version": "0.1.21", | ||
| "version": "0.1.22", | ||
| "main": "index.js", | ||
@@ -39,4 +39,4 @@ "types": "./index.d.ts", | ||
| "devDependencies": { | ||
| "@napi-rs/cli": "^3.0.1", | ||
| "@types/node": "^24.0.15", | ||
| "@napi-rs/cli": "^3.1.5", | ||
| "@types/node": "^24.3.0", | ||
| "ava": "^6.4.1", | ||
@@ -52,2 +52,3 @@ "pretty-ms": "^9.2.0" | ||
| "build:debug": "napi build --platform", | ||
| "preversion": "napi build --platform && git add .", | ||
| "prepublishOnly": "napi prepublish -t npm", | ||
@@ -59,18 +60,18 @@ "test": "ava", | ||
| "optionalDependencies": { | ||
| "@napi-rs/simple-git-win32-x64-msvc": "0.1.21", | ||
| "@napi-rs/simple-git-darwin-x64": "0.1.21", | ||
| "@napi-rs/simple-git-linux-x64-gnu": "0.1.21", | ||
| "@napi-rs/simple-git-linux-x64-musl": "0.1.21", | ||
| "@napi-rs/simple-git-linux-arm64-gnu": "0.1.21", | ||
| "@napi-rs/simple-git-win32-ia32-msvc": "0.1.21", | ||
| "@napi-rs/simple-git-linux-arm-gnueabihf": "0.1.21", | ||
| "@napi-rs/simple-git-darwin-arm64": "0.1.21", | ||
| "@napi-rs/simple-git-android-arm64": "0.1.21", | ||
| "@napi-rs/simple-git-freebsd-x64": "0.1.21", | ||
| "@napi-rs/simple-git-linux-arm64-musl": "0.1.21", | ||
| "@napi-rs/simple-git-win32-arm64-msvc": "0.1.21", | ||
| "@napi-rs/simple-git-android-arm-eabi": "0.1.21", | ||
| "@napi-rs/simple-git-linux-ppc64-gnu": "0.1.21", | ||
| "@napi-rs/simple-git-linux-s390x-gnu": "0.1.21" | ||
| "@napi-rs/simple-git-win32-x64-msvc": "0.1.22", | ||
| "@napi-rs/simple-git-darwin-x64": "0.1.22", | ||
| "@napi-rs/simple-git-linux-x64-gnu": "0.1.22", | ||
| "@napi-rs/simple-git-linux-x64-musl": "0.1.22", | ||
| "@napi-rs/simple-git-linux-arm64-gnu": "0.1.22", | ||
| "@napi-rs/simple-git-win32-ia32-msvc": "0.1.22", | ||
| "@napi-rs/simple-git-linux-arm-gnueabihf": "0.1.22", | ||
| "@napi-rs/simple-git-darwin-arm64": "0.1.22", | ||
| "@napi-rs/simple-git-android-arm64": "0.1.22", | ||
| "@napi-rs/simple-git-freebsd-x64": "0.1.22", | ||
| "@napi-rs/simple-git-linux-arm64-musl": "0.1.22", | ||
| "@napi-rs/simple-git-win32-arm64-msvc": "0.1.22", | ||
| "@napi-rs/simple-git-android-arm-eabi": "0.1.22", | ||
| "@napi-rs/simple-git-linux-ppc64-gnu": "0.1.22", | ||
| "@napi-rs/simple-git-linux-s390x-gnu": "0.1.22" | ||
| } | ||
| } |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
72711
17.56%1807
6.92%54
575%