@builtwith/sdk 1.4.2 → 1.4.3

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
@@ -47,6 +47,7 @@ if (result.ok) {
47
47
  |---|---|---|
48
48
  | `domain_lookup_live({ domain })` | Root domain | Live technology lookup |
49
49
  | `domain_lookup({ lookup })` | Root domain | Full domain API data |
50
+ | `change({ lookup, since? })` | Root domain or domain array | Technology additions/removals since a date |
50
51
  | `relationships({ lookup })` | Root domain | Related websites |
51
52
  | `free_summary({ lookup })` | Root domain | Free category/group counts |
52
53
  | `company_to_url({ company })` | Company name | Domains from a company name |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builtwith/sdk",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "BuiltWith AI-first SDK for Node.js",
5
5
  "main": "src/index.js",
6
6
  "exports": {
package/src/index.js CHANGED
@@ -252,6 +252,16 @@ class BuiltWithClient {
252
252
  return this._request('domain-api', { lookup });
253
253
  }
254
254
 
255
+ async change(params) {
256
+ const { lookup, since } = params || {};
257
+ const lookupValue = Array.isArray(lookup) ? lookup.join(',') : lookup;
258
+ _validate_string('lookup', lookupValue);
259
+ return this._request('change-api', {
260
+ lookup: lookupValue,
261
+ ...(since != null ? { since } : {}),
262
+ });
263
+ }
264
+
255
265
  async relationships(params) {
256
266
  const { lookup } = params || {};
257
267
  _validate_domain(lookup);