Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Only used by Jest, to transform the handful of ESM-only transitive
// dependencies (@noble/hashes, pulled in by @stellar/stellar-sdk) that Jest's
// default node_modules-ignoring transform can't load. The app itself runs
// on plain Node, which resolves these packages natively — see
// jest.config.js's transformIgnorePatterns comment for details.
module.exports = {
presets: [["@babel/preset-env", { targets: { node: "current" } }]],
};
22 changes: 22 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Several of @stellar/stellar-sdk's own dependencies (@noble/hashes,
// uint8array-extras, ...) publish ESM-only ("type": "module"). Node
// resolves these fine natively via package.json `exports`, but Jest's
// default config ignores all of node_modules for transformation, so it
// hits raw `import`/`export` syntax and fails with "Cannot use import
// statement outside a module" / "Unexpected token 'export'". Rather than
// naming each ESM-only package individually (fragile as the SDK's own
// dependencies change), un-ignore its whole private dependency tree so
// babel.config.js can transform whichever ones need it.
module.exports = {
// @noble/hashes, @noble/ed25519, and uint8array-extras (transitive
// dependencies of @stellar/stellar-sdk, some hoisted to the top level,
// some nested under the SDK's own node_modules) are ESM-only. Anchored at
// ^ deliberately: some of these live two node_modules/ segments deep
// (node_modules/@stellar/stellar-sdk/node_modules/@noble/...), and an
// unanchored lookahead gets re-tried starting from the *second*
// node_modules/ occurrence too, which defeats it. Anchoring makes the
// lookahead scan the whole path exactly once.
transformIgnorePatterns: [
"^(?!.*(@noble|uint8array-extras)).*node_modules.*",
],
};
9 changes: 6 additions & 3 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1700,7 +1700,8 @@ components:
$ref: "#/components/schemas/StellarAddress"
total_amount:
type: number
exclusiveMinimum: 0
minimum: 0
exclusiveMinimum: true
description: Total airdrop amount in asset units
example: 10000
expiry_ledger:
Expand Down Expand Up @@ -1752,7 +1753,8 @@ components:
$ref: "#/components/schemas/StellarAddress"
amount:
type: number
exclusiveMinimum: 0
minimum: 0
exclusiveMinimum: true
description: Amount in asset units (at most 7 decimal places)
example: 100.5
required:
Expand Down Expand Up @@ -1824,7 +1826,8 @@ components:
description: Alert trigger condition
threshold_usd:
type: number
exclusiveMinimum: 0
minimum: 0
exclusiveMinimum: true
description: Price threshold in USD (or percentage for change_pct)
example: 0.5
webhook_url:
Expand Down
Loading
Loading