@cosmosapp/pay_sdk 1.0.0 → 1.0.1

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/CHANGELOG.md ADDED
@@ -0,0 +1,13 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project are documented here. This file is updated automatically on each release.
4
+
5
+ ## [v1.0.1](https://github.com/CosmosPay/CosmosJS_SDK/releases/tag/v1.0.1) - 2026-06-25
6
+
7
+ - Update package-lock.json and package.json to reflect package name change to "@cosmosapp/pay_sdk" and add "semver" as a dev dependency. Enhance GitHub Actions workflow for automated versioning and publishing, including a new script for version resolution. ([`ec09229`](https://github.com/CosmosPay/CosmosJS_SDK/commit/ec09229))
8
+ - Update default gateway URL in documentation and code; clarify usage for self-hosting and API key configuration ([`f3479df`](https://github.com/CosmosPay/CosmosJS_SDK/commit/f3479df))
9
+ - Add repository metadata and update CI badge in README ([`3d60008`](https://github.com/CosmosPay/CosmosJS_SDK/commit/3d60008))
10
+ - Rename package from "cosmospay.js" to "@cosmosapp/pay_sdk" and update all references in documentation, examples, and codebase. Adjust CI/CD workflow to enable automatic publishing on version changes. ([`0d8847a`](https://github.com/CosmosPay/CosmosJS_SDK/commit/0d8847a))
11
+ - Enhance testing and CI/CD setup: Updated test scripts in package.json to include specific test files, added CI and release workflows for automated testing and publishing, and improved README with CI/CD details. ([`3d55592`](https://github.com/CosmosPay/CosmosJS_SDK/commit/3d55592))
12
+ - First commit ([`23825de`](https://github.com/CosmosPay/CosmosJS_SDK/commit/23825de))
13
+
package/README.md CHANGED
@@ -93,8 +93,9 @@ useful for self-hosting or pointing at a staging gateway:
93
93
  ```ts
94
94
  import { Client } from '@cosmosapp/pay_sdk';
95
95
 
96
- Client.shared.baseURL = 'https://staging.cosmospay.io';
96
+ Client.shared.baseURL = 'https://gateway.your-domain.com'; // e.g. a self-hosted gateway
97
97
  // every client created afterwards inherits this
98
+ // (the default is the public gateway: https://api.cosmospay.lat/cosmos-api)
98
99
  ```
99
100
 
100
101
  Or per-client (rarely needed):
@@ -355,7 +356,7 @@ new Client({
355
356
  fetch: customFetch, // custom fetch implementation
356
357
 
357
358
  // Advanced / internal — pre-filled from Client.shared, rarely overridden:
358
- baseURL: 'https://...', // gateway URL
359
+ baseURL: 'https://api.cosmospay.lat/cosmos-api', // gateway URL (default)
359
360
  version: 'v1', // route prefix
360
361
  gatewaySecret: '...', // direct access (X-Gateway-Secret)
361
362
  consumerUsername: '...', // direct access (X-Consumer-Username)
package/dist/index.cjs CHANGED
@@ -598,7 +598,7 @@ var WebhookEndpoint = class extends Base {
598
598
 
599
599
  // src/util/Constants.ts
600
600
  var version = "1.0.0";
601
- var DEFAULT_BASE_URL = "https://api.cosmospay.io";
601
+ var DEFAULT_BASE_URL = "https://api.cosmospay.lat/cosmos-api";
602
602
  var DEFAULT_VERSION = "v1";
603
603
  var DEFAULT_TIMEOUT = 3e4;
604
604
  var DEFAULT_RETRIES = 2;
@@ -1112,8 +1112,8 @@ var Client = class extends events.EventEmitter {
1112
1112
  static {
1113
1113
  /**
1114
1114
  * Process-wide shared defaults maintained by Cosmos Pay (gateway URL, version,
1115
- * internal secrets). Mutate once at startup to change them for every client:
1116
- * `Client.shared.baseURL = 'https://staging.cosmospay.io'`.
1115
+ * internal secrets). Mutate once at startup to change them for every client
1116
+ * (e.g. self-hosting): `Client.shared.baseURL = 'https://gateway.your-domain.com'`.
1117
1117
  */
1118
1118
  this.shared = shared;
1119
1119
  }