diff --git a/.github/workflows/contract-tests.yml b/.github/workflows/contract-tests.yml index 195d4008..69e30f86 100644 --- a/.github/workflows/contract-tests.yml +++ b/.github/workflows/contract-tests.yml @@ -27,6 +27,15 @@ jobs: - name: Verify API surface snapshot run: npm run contract-snapshot-verify + - name: Show API surface diff + if: failure() + run: | + echo "### API surface changes detected ###" + echo "Lines prefixed with '-' were REMOVED from the public API." + echo "Lines prefixed with '+' were ADDED to the public API." + echo "" + diff -u api-report/skyflow-node.api.md temp/skyflow-node.api.md || true + - name: Upload API surface diff on failure if: failure() uses: actions/upload-artifact@v4 diff --git a/src/vault/model/options/insert/index.ts b/src/vault/model/options/insert/index.ts index 9d0dfdcd..c2155f9a 100644 --- a/src/vault/model/options/insert/index.ts +++ b/src/vault/model/options/insert/index.ts @@ -26,6 +26,10 @@ class InsertOptions { this.tokens = tokens; } + setEnableTokens(tokens: Array>) { + this.tokens = tokens; + } + setHomogeneous(homogeneous: boolean) { this.homogeneous = homogeneous; }