@mherod/get-cookie 4.4.0 → 4.4.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/.husky/commit-msg +0 -1
- package/.husky/pre-commit +10 -1
- package/.husky/pre-push +15 -0
- package/dist/cli.cjs +10 -10
- package/dist/cli.cjs.map +1 -1
- package/dist/index.cjs +11 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +31 -174
- package/dist/index.d.ts +31 -174
- package/dist/index.js +11 -11
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/examples/README.md +40 -6
- package/examples/cli-examples.sh +0 -0
- package/examples/curl-integration.sh +195 -160
- package/examples/features-demo.sh +260 -0
- package/examples/github-auth.sh +295 -0
- package/examples/quick-start.sh +115 -0
- package/package.json +62 -68
- package/tsup.cli.ts +1 -0
- package/tsup.lib.ts +9 -1
- package/examples/chrome-cookies-demo.sh +0 -117
- package/examples/chrome-profile-demo.sh +0 -126
- package/examples/curl-demo.sh +0 -102
- package/examples/curl-with-url.sh +0 -136
- package/examples/deduplication-demo.sh +0 -110
- package/examples/final-chrome-demo.sh +0 -115
- package/examples/github-api.sh +0 -101
- package/examples/github-private-access.sh +0 -118
- package/examples/list-profiles-demo.sh +0 -120
- package/examples/proper-curl-usage.sh +0 -120
- package/examples/simple-curl.sh +0 -95
- package/examples/test-expired-filtering.sh +0 -68
- package/examples/test-github-access.sh +0 -245
- package/examples/test-github-auth-improved.sh +0 -136
- package/examples/working-curl.sh +0 -117
- package/examples/working-github-auth.sh +0 -87
package/.husky/commit-msg
CHANGED
package/.husky/pre-commit
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
|
-
. "$(dirname "$0")/_/husky.sh"
|
|
3
2
|
|
|
4
3
|
# Load nvm and use the project's Node.js version
|
|
5
4
|
export NVM_DIR="$HOME/.nvm"
|
|
@@ -8,8 +7,18 @@ export NVM_DIR="$HOME/.nvm"
|
|
|
8
7
|
# Use the version specified in .nvmrc or fallback to default nvm version
|
|
9
8
|
if [ -f .nvmrc ]; then
|
|
10
9
|
nvm use
|
|
10
|
+
NVM_NODE_VERSION=$(cat .nvmrc | tr -d '\n')
|
|
11
11
|
else
|
|
12
12
|
nvm use default
|
|
13
|
+
NVM_NODE_VERSION=$(nvm alias default | awk '{print $NF}')
|
|
14
|
+
fi
|
|
15
|
+
|
|
16
|
+
# Explicitly set PATH to prioritize nvm's Node version
|
|
17
|
+
if [ -n "$NVM_NODE_VERSION" ]; then
|
|
18
|
+
NVM_NODE_PATH=$(nvm which "$NVM_NODE_VERSION" 2>/dev/null)
|
|
19
|
+
if [ -n "$NVM_NODE_PATH" ]; then
|
|
20
|
+
export PATH="$(dirname "$NVM_NODE_PATH"):$PATH"
|
|
21
|
+
fi
|
|
13
22
|
fi
|
|
14
23
|
|
|
15
24
|
# Try pnpm first, fallback to npx if pnpm not found
|
package/.husky/pre-push
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
# Load nvm if available
|
|
2
|
+
export NVM_DIR="$HOME/.nvm"
|
|
3
|
+
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
|
4
|
+
|
|
5
|
+
# Use Node version from .nvmrc if it exists
|
|
6
|
+
[ -f .nvmrc ] && nvm use
|
|
7
|
+
|
|
8
|
+
# Ensure nvm's Node takes precedence in PATH
|
|
9
|
+
if [ -n "$NVM_DIR" ] && [ -d "$NVM_DIR/versions/node" ]; then
|
|
10
|
+
NODE_VERSION=$(nvm version)
|
|
11
|
+
if [ -n "$NODE_VERSION" ] && [ "$NODE_VERSION" != "system" ]; then
|
|
12
|
+
export PATH="$NVM_DIR/versions/node/$NODE_VERSION/bin:$PATH"
|
|
13
|
+
fi
|
|
14
|
+
fi
|
|
15
|
+
|
|
1
16
|
# Try pnpm first, fallback to npx if pnpm not found
|
|
2
17
|
if command -v pnpm >/dev/null 2>&1; then
|
|
3
18
|
pnpm run validate
|