diff --git a/test/fixtures/paystack.json b/contract-fixtures/paystack.json similarity index 100% rename from test/fixtures/paystack.json rename to contract-fixtures/paystack.json diff --git a/node_modules/.bin/openapi-typescript b/node_modules/.bin/openapi-typescript deleted file mode 100755 index f8dd62f..0000000 --- a/node_modules/.bin/openapi-typescript +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/sh -# Resolve $0 through symlinks so basedir is the shim's real directory. -# Cap hops at the kernel's ELOOP limit so a cycle cannot hang the shim. -link="$0" -hops=0 -while [ -L "$link" ] && [ "$hops" -lt 40 ]; do - hops=$((hops+1)) - target=$(readlink "$link") - case "$target" in - /*) link="$target" ;; - *) link="$(dirname "$link")/$target" ;; - esac -done -basedir=$(dirname "$(echo "$link" | sed -e 's,\\,/,g')") -basedir_win="$basedir" -exe="" -msys="" - -case `uname -a` in - *CYGWIN*|*MINGW*|*MSYS*) - if command -v cygpath > /dev/null 2>&1; then - basedir_win=`cygpath -w "$basedir"` - fi - exe=".exe" - msys="true" - ;; - *WSL2*) - if command -v wslpath > /dev/null 2>&1; then - basedir_win="$(wslpath -w "$basedir" 2> /dev/null)" - if [ $? -ne 0 ] || [ -z "$basedir_win" ]; then - basedir_win="$basedir" - else - exe=".exe" - fi - fi - ;; -esac - -if [ -z "$NODE_PATH" ]; then - export NODE_PATH="/Users/alexasomba/Documents/GitHub/alexasomba/paystack-sdks/sdks/paystack-node/node_modules/.pnpm/openapi-typescript@7.13.0_typescript@5.9.3/node_modules/openapi-typescript/node_modules:/Users/alexasomba/Documents/GitHub/alexasomba/paystack-sdks/sdks/paystack-node/node_modules/.pnpm/openapi-typescript@7.13.0_typescript@5.9.3/node_modules:/Users/alexasomba/Documents/GitHub/alexasomba/paystack-sdks/sdks/paystack-node/node_modules/.pnpm/node_modules" -else - export NODE_PATH="/Users/alexasomba/Documents/GitHub/alexasomba/paystack-sdks/sdks/paystack-node/node_modules/.pnpm/openapi-typescript@7.13.0_typescript@5.9.3/node_modules/openapi-typescript/node_modules:/Users/alexasomba/Documents/GitHub/alexasomba/paystack-sdks/sdks/paystack-node/node_modules/.pnpm/openapi-typescript@7.13.0_typescript@5.9.3/node_modules:/Users/alexasomba/Documents/GitHub/alexasomba/paystack-sdks/sdks/paystack-node/node_modules/.pnpm/node_modules:$NODE_PATH" -fi -if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then - exec "$basedir/node.exe" "$basedir_win/../openapi-typescript/bin/cli.js" "$@" -elif [ -x "$basedir/node" ]; then - exec "$basedir/node" "$basedir/../openapi-typescript/bin/cli.js" "$@" -elif command -v node >/dev/null 2>&1; then - exec node "$basedir/../openapi-typescript/bin/cli.js" "$@" -elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then - exec node.exe "$basedir_win/../openapi-typescript/bin/cli.js" "$@" -else - exec node "$basedir/../openapi-typescript/bin/cli.js" "$@" -fi -# cmd-shim-target=/Users/alexasomba/Documents/GitHub/alexasomba/paystack-sdks/sdks/paystack-node/node_modules/openapi-typescript/bin/cli.js diff --git a/node_modules/.bin/tsc b/node_modules/.bin/tsc deleted file mode 100755 index 8e28098..0000000 --- a/node_modules/.bin/tsc +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/sh -# Resolve $0 through symlinks so basedir is the shim's real directory. -# Cap hops at the kernel's ELOOP limit so a cycle cannot hang the shim. -link="$0" -hops=0 -while [ -L "$link" ] && [ "$hops" -lt 40 ]; do - hops=$((hops+1)) - target=$(readlink "$link") - case "$target" in - /*) link="$target" ;; - *) link="$(dirname "$link")/$target" ;; - esac -done -basedir=$(dirname "$(echo "$link" | sed -e 's,\\,/,g')") -basedir_win="$basedir" -exe="" -msys="" - -case `uname -a` in - *CYGWIN*|*MINGW*|*MSYS*) - if command -v cygpath > /dev/null 2>&1; then - basedir_win=`cygpath -w "$basedir"` - fi - exe=".exe" - msys="true" - ;; - *WSL2*) - if command -v wslpath > /dev/null 2>&1; then - basedir_win="$(wslpath -w "$basedir" 2> /dev/null)" - if [ $? -ne 0 ] || [ -z "$basedir_win" ]; then - basedir_win="$basedir" - else - exe=".exe" - fi - fi - ;; -esac - -if [ -z "$NODE_PATH" ]; then - export NODE_PATH="/Users/alexasomba/Documents/GitHub/alexasomba/paystack-sdks/sdks/paystack-node/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/Users/alexasomba/Documents/GitHub/alexasomba/paystack-sdks/sdks/paystack-node/node_modules/.pnpm/typescript@5.9.3/node_modules:/Users/alexasomba/Documents/GitHub/alexasomba/paystack-sdks/sdks/paystack-node/node_modules/.pnpm/node_modules" -else - export NODE_PATH="/Users/alexasomba/Documents/GitHub/alexasomba/paystack-sdks/sdks/paystack-node/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/Users/alexasomba/Documents/GitHub/alexasomba/paystack-sdks/sdks/paystack-node/node_modules/.pnpm/typescript@5.9.3/node_modules:/Users/alexasomba/Documents/GitHub/alexasomba/paystack-sdks/sdks/paystack-node/node_modules/.pnpm/node_modules:$NODE_PATH" -fi -if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then - exec "$basedir/node.exe" "$basedir_win/../typescript/bin/tsc" "$@" -elif [ -x "$basedir/node" ]; then - exec "$basedir/node" "$basedir/../typescript/bin/tsc" "$@" -elif command -v node >/dev/null 2>&1; then - exec node "$basedir/../typescript/bin/tsc" "$@" -elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then - exec node.exe "$basedir_win/../typescript/bin/tsc" "$@" -else - exec node "$basedir/../typescript/bin/tsc" "$@" -fi -# cmd-shim-target=/Users/alexasomba/Documents/GitHub/alexasomba/paystack-sdks/sdks/paystack-node/node_modules/typescript/bin/tsc diff --git a/node_modules/.bin/tsserver b/node_modules/.bin/tsserver deleted file mode 100755 index 7fb8702..0000000 --- a/node_modules/.bin/tsserver +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/sh -# Resolve $0 through symlinks so basedir is the shim's real directory. -# Cap hops at the kernel's ELOOP limit so a cycle cannot hang the shim. -link="$0" -hops=0 -while [ -L "$link" ] && [ "$hops" -lt 40 ]; do - hops=$((hops+1)) - target=$(readlink "$link") - case "$target" in - /*) link="$target" ;; - *) link="$(dirname "$link")/$target" ;; - esac -done -basedir=$(dirname "$(echo "$link" | sed -e 's,\\,/,g')") -basedir_win="$basedir" -exe="" -msys="" - -case `uname -a` in - *CYGWIN*|*MINGW*|*MSYS*) - if command -v cygpath > /dev/null 2>&1; then - basedir_win=`cygpath -w "$basedir"` - fi - exe=".exe" - msys="true" - ;; - *WSL2*) - if command -v wslpath > /dev/null 2>&1; then - basedir_win="$(wslpath -w "$basedir" 2> /dev/null)" - if [ $? -ne 0 ] || [ -z "$basedir_win" ]; then - basedir_win="$basedir" - else - exe=".exe" - fi - fi - ;; -esac - -if [ -z "$NODE_PATH" ]; then - export NODE_PATH="/Users/alexasomba/Documents/GitHub/alexasomba/paystack-sdks/sdks/paystack-node/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/Users/alexasomba/Documents/GitHub/alexasomba/paystack-sdks/sdks/paystack-node/node_modules/.pnpm/typescript@5.9.3/node_modules:/Users/alexasomba/Documents/GitHub/alexasomba/paystack-sdks/sdks/paystack-node/node_modules/.pnpm/node_modules" -else - export NODE_PATH="/Users/alexasomba/Documents/GitHub/alexasomba/paystack-sdks/sdks/paystack-node/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/Users/alexasomba/Documents/GitHub/alexasomba/paystack-sdks/sdks/paystack-node/node_modules/.pnpm/typescript@5.9.3/node_modules:/Users/alexasomba/Documents/GitHub/alexasomba/paystack-sdks/sdks/paystack-node/node_modules/.pnpm/node_modules:$NODE_PATH" -fi -if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then - exec "$basedir/node.exe" "$basedir_win/../typescript/bin/tsserver" "$@" -elif [ -x "$basedir/node" ]; then - exec "$basedir/node" "$basedir/../typescript/bin/tsserver" "$@" -elif command -v node >/dev/null 2>&1; then - exec node "$basedir/../typescript/bin/tsserver" "$@" -elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then - exec node.exe "$basedir_win/../typescript/bin/tsserver" "$@" -else - exec node "$basedir/../typescript/bin/tsserver" "$@" -fi -# cmd-shim-target=/Users/alexasomba/Documents/GitHub/alexasomba/paystack-sdks/sdks/paystack-node/node_modules/typescript/bin/tsserver diff --git a/node_modules/.bin/yaml b/node_modules/.bin/yaml deleted file mode 100755 index e0ccbb6..0000000 --- a/node_modules/.bin/yaml +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/sh -# Resolve $0 through symlinks so basedir is the shim's real directory. -# Cap hops at the kernel's ELOOP limit so a cycle cannot hang the shim. -link="$0" -hops=0 -while [ -L "$link" ] && [ "$hops" -lt 40 ]; do - hops=$((hops+1)) - target=$(readlink "$link") - case "$target" in - /*) link="$target" ;; - *) link="$(dirname "$link")/$target" ;; - esac -done -basedir=$(dirname "$(echo "$link" | sed -e 's,\\,/,g')") -basedir_win="$basedir" -exe="" -msys="" - -case `uname -a` in - *CYGWIN*|*MINGW*|*MSYS*) - if command -v cygpath > /dev/null 2>&1; then - basedir_win=`cygpath -w "$basedir"` - fi - exe=".exe" - msys="true" - ;; - *WSL2*) - if command -v wslpath > /dev/null 2>&1; then - basedir_win="$(wslpath -w "$basedir" 2> /dev/null)" - if [ $? -ne 0 ] || [ -z "$basedir_win" ]; then - basedir_win="$basedir" - else - exe=".exe" - fi - fi - ;; -esac - -if [ -z "$NODE_PATH" ]; then - export NODE_PATH="/Users/alexasomba/Documents/GitHub/alexasomba/paystack-sdks/sdks/paystack-node/node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/node_modules:/Users/alexasomba/Documents/GitHub/alexasomba/paystack-sdks/sdks/paystack-node/node_modules/.pnpm/yaml@2.8.4/node_modules:/Users/alexasomba/Documents/GitHub/alexasomba/paystack-sdks/sdks/paystack-node/node_modules/.pnpm/node_modules" -else - export NODE_PATH="/Users/alexasomba/Documents/GitHub/alexasomba/paystack-sdks/sdks/paystack-node/node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/node_modules:/Users/alexasomba/Documents/GitHub/alexasomba/paystack-sdks/sdks/paystack-node/node_modules/.pnpm/yaml@2.8.4/node_modules:/Users/alexasomba/Documents/GitHub/alexasomba/paystack-sdks/sdks/paystack-node/node_modules/.pnpm/node_modules:$NODE_PATH" -fi -if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then - exec "$basedir/node.exe" "$basedir_win/../yaml/bin.mjs" "$@" -elif [ -x "$basedir/node" ]; then - exec "$basedir/node" "$basedir/../yaml/bin.mjs" "$@" -elif command -v node >/dev/null 2>&1; then - exec node "$basedir/../yaml/bin.mjs" "$@" -elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then - exec node.exe "$basedir_win/../yaml/bin.mjs" "$@" -else - exec node "$basedir/../yaml/bin.mjs" "$@" -fi -# cmd-shim-target=/Users/alexasomba/Documents/GitHub/alexasomba/paystack-sdks/sdks/paystack-node/node_modules/yaml/bin.mjs diff --git a/node_modules/@types/node b/node_modules/@types/node deleted file mode 120000 index 693079b..0000000 --- a/node_modules/@types/node +++ /dev/null @@ -1 +0,0 @@ -../.pnpm/@types+node@24.12.3/node_modules/@types/node \ No newline at end of file diff --git a/node_modules/openapi-fetch b/node_modules/openapi-fetch deleted file mode 120000 index ff0b26b..0000000 --- a/node_modules/openapi-fetch +++ /dev/null @@ -1 +0,0 @@ -.pnpm/openapi-fetch@0.17.0/node_modules/openapi-fetch \ No newline at end of file diff --git a/node_modules/openapi-typescript b/node_modules/openapi-typescript deleted file mode 120000 index 7c2356c..0000000 --- a/node_modules/openapi-typescript +++ /dev/null @@ -1 +0,0 @@ -.pnpm/openapi-typescript@7.13.0_typescript@5.9.3/node_modules/openapi-typescript \ No newline at end of file diff --git a/node_modules/yaml b/node_modules/yaml deleted file mode 120000 index e0ddd0b..0000000 --- a/node_modules/yaml +++ /dev/null @@ -1 +0,0 @@ -.pnpm/yaml@2.8.4/node_modules/yaml \ No newline at end of file diff --git a/test/contract.test.ts b/test/contract.test.ts index 9780ebe..a348156 100644 --- a/test/contract.test.ts +++ b/test/contract.test.ts @@ -6,8 +6,8 @@ import { createPaystack } from "../src/index.js"; const fixtures = JSON.parse( fs.readFileSync( - fs.existsSync(new URL("./fixtures/paystack.json", import.meta.url)) - ? new URL("./fixtures/paystack.json", import.meta.url) + fs.existsSync(new URL("../contract-fixtures/paystack.json", import.meta.url)) + ? new URL("../contract-fixtures/paystack.json", import.meta.url) : new URL("../../contract-fixtures/paystack.json", import.meta.url), "utf8", ),