@stinkycomputing/sesame-api-client 1.4.0-alpha.0 → 1.4.0

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/README.md CHANGED
@@ -160,24 +160,6 @@ This approach gives you:
160
160
  - ✅ Fast deployment
161
161
  - ✅ No version conflicts
162
162
 
163
- ## Publishing
164
-
165
- The package is published manually to npm from a local machine.
166
-
167
- ### Prerequisites (one-time setup)
168
-
169
- 1. Create the `@stinkycomputing` organization on [npmjs.com](https://www.npmjs.com/org/create)
170
- 2. Log in to npm: `npm login`
171
-
172
- ### Release process
173
-
174
- 1. Update the version in `package.json`
175
- 2. Build: `npm run build`
176
- 3. Publish:
177
- - **Stable release:** `npm publish --access public`
178
- - **Prerelease:** `npm publish --access public --tag alpha` (or `beta`, etc.)
179
- 4. Commit and tag: `git tag api-client-vX.Y.Z && git push origin api-client-vX.Y.Z`
180
-
181
163
  ## License
182
164
 
183
165
  MIT
package/dist/index.cjs CHANGED
@@ -22166,7 +22166,7 @@ var EaseKind = /* @__PURE__ */ ((EaseKind2) => {
22166
22166
  return EaseKind2;
22167
22167
  })(EaseKind || {});
22168
22168
  var SesameClient = class extends import_events3.EventEmitter {
22169
- constructor(portOrUrl) {
22169
+ constructor(port) {
22170
22170
  super();
22171
22171
  this.subscriptions = [];
22172
22172
  this.errorIsLogged = false;
@@ -22176,9 +22176,8 @@ var SesameClient = class extends import_events3.EventEmitter {
22176
22176
  };
22177
22177
  this.onCallbackMessage = () => {
22178
22178
  };
22179
- const url = typeof portOrUrl === "number" ? `ws://127.0.0.1:${portOrUrl}/api` : portOrUrl;
22180
22179
  this.conn = new SesameConnection({
22181
- url,
22180
+ url: `ws://127.0.0.1:${port}/api`,
22182
22181
  autoConnect: true,
22183
22182
  autoReconnect: true
22184
22183
  });