@builtwith/sdk 1.4.1 → 1.4.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builtwith/sdk",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "BuiltWith AI-first SDK for Node.js",
5
5
  "main": "src/index.js",
6
6
  "exports": {
package/src/index.js CHANGED
@@ -398,7 +398,7 @@ class BuiltWithClient {
398
398
 
399
399
  static async agent_auth_start() {
400
400
  try {
401
- const res = await _http_post('https://api.builtwith.com/agent-auth-start', {}, {}, 30000);
401
+ const res = await _http_post('https://api.builtwith.com/agent-auth/start', {}, {}, 30000);
402
402
  if (res.status < 200 || res.status >= 300) {
403
403
  return _err(new BuiltWithError('HTTP_ERROR', `HTTP ${res.status}: ${res.body.substring(0, 200)}`, res.status), 'agent-auth-start');
404
404
  }
@@ -415,7 +415,7 @@ class BuiltWithClient {
415
415
  static async agent_auth_token(device_code) {
416
416
  _validate_string('device_code', device_code);
417
417
  try {
418
- const res = await _http_post('https://api.builtwith.com/agent-auth-token', { device_code }, {}, 30000);
418
+ const res = await _http_post('https://api.builtwith.com/agent-auth/token', { device_code }, {}, 30000);
419
419
  let data;
420
420
  try { data = JSON.parse(res.body); } catch (_) {
421
421
  return _err(new BuiltWithError('PARSE_ERROR', 'Failed to parse agent-auth-token response.', res.status), 'agent-auth-token');