@youdotcom-oss/n8n-nodes-youdotcom 0.2.0 → 0.2.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.
@@ -1,4 +1,38 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropNames = Object.getOwnPropertyNames;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __moduleCache = /* @__PURE__ */ new WeakMap;
6
+ var __toCommonJS = (from) => {
7
+ var entry = __moduleCache.get(from), desc;
8
+ if (entry)
9
+ return entry;
10
+ entry = __defProp({}, "__esModule", { value: true });
11
+ if (from && typeof from === "object" || typeof from === "function")
12
+ __getOwnPropNames(from).map((key) => !__hasOwnProp.call(entry, key) && __defProp(entry, key, {
13
+ get: () => from[key],
14
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
+ }));
16
+ __moduleCache.set(from, entry);
17
+ return entry;
18
+ };
19
+ var __export = (target, all) => {
20
+ for (var name in all)
21
+ __defProp(target, name, {
22
+ get: all[name],
23
+ enumerable: true,
24
+ configurable: true,
25
+ set: (newValue) => all[name] = () => newValue
26
+ });
27
+ };
28
+
1
29
  // credentials/YouDotComApi.credentials.ts
30
+ var exports_YouDotComApi_credentials = {};
31
+ __export(exports_YouDotComApi_credentials, {
32
+ YouDotComApi: () => YouDotComApi
33
+ });
34
+ module.exports = __toCommonJS(exports_YouDotComApi_credentials);
35
+
2
36
  class YouDotComApi {
3
37
  name = "youDotComApi";
4
38
  displayName = "You.com API";
@@ -37,6 +71,3 @@ class YouDotComApi {
37
71
  }
38
72
  };
39
73
  }
40
- export {
41
- YouDotComApi
42
- };
@@ -1,4 +1,21 @@
1
1
  var __defProp = Object.defineProperty;
2
+ var __getOwnPropNames = Object.getOwnPropertyNames;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __moduleCache = /* @__PURE__ */ new WeakMap;
6
+ var __toCommonJS = (from) => {
7
+ var entry = __moduleCache.get(from), desc;
8
+ if (entry)
9
+ return entry;
10
+ entry = __defProp({}, "__esModule", { value: true });
11
+ if (from && typeof from === "object" || typeof from === "function")
12
+ __getOwnPropNames(from).map((key) => !__hasOwnProp.call(entry, key) && __defProp(entry, key, {
13
+ get: () => from[key],
14
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
+ }));
16
+ __moduleCache.set(from, entry);
17
+ return entry;
18
+ };
2
19
  var __export = (target, all) => {
3
20
  for (var name in all)
4
21
  __defProp(target, name, {
@@ -10,7 +27,12 @@ var __export = (target, all) => {
10
27
  };
11
28
 
12
29
  // nodes/YouDotCom/YouDotCom.node.ts
13
- import { NodeApiError, NodeOperationError } from "n8n-workflow";
30
+ var exports_YouDotCom_node = {};
31
+ __export(exports_YouDotCom_node, {
32
+ YouDotCom: () => YouDotCom
33
+ });
34
+ module.exports = __toCommonJS(exports_YouDotCom_node);
35
+ var import_n8n_workflow = require("n8n-workflow");
14
36
 
15
37
  // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/external.js
16
38
  var exports_external = {};
@@ -14022,7 +14044,7 @@ ${error48.issues.map((e, i2) => ` ${i2 + 1}. ${e.path.join(".") || "root"}: ${e
14022
14044
  });
14023
14045
  continue;
14024
14046
  }
14025
- throw new NodeApiError(this.getNode(), { message: errorMessage, issues: serializedIssues }, {
14047
+ throw new import_n8n_workflow.NodeApiError(this.getNode(), { message: errorMessage, issues: serializedIssues }, {
14026
14048
  itemIndex: i
14027
14049
  });
14028
14050
  }
@@ -14035,7 +14057,7 @@ ${error48.issues.map((e, i2) => ` ${i2 + 1}. ${e.path.join(".") || "root"}: ${e
14035
14057
  });
14036
14058
  continue;
14037
14059
  }
14038
- throw new NodeApiError(this.getNode(), error48, {
14060
+ throw new import_n8n_workflow.NodeApiError(this.getNode(), error48, {
14039
14061
  itemIndex: i
14040
14062
  });
14041
14063
  }
@@ -14081,7 +14103,7 @@ ${error48.issues.map((e, i2) => ` ${i2 + 1}. ${e.path.join(".") || "root"}: ${e
14081
14103
  const options = ContentsOptionsSchema.parse(rawOptions);
14082
14104
  const urls = urlsString.split(",").map((url2) => url2.trim()).filter((url2) => url2.length > 0);
14083
14105
  if (urls.length === 0) {
14084
- throw new NodeOperationError(context.getNode(), "At least one URL is required", { itemIndex });
14106
+ throw new import_n8n_workflow.NodeOperationError(context.getNode(), "At least one URL is required", { itemIndex });
14085
14107
  }
14086
14108
  const body = { urls };
14087
14109
  if (options.formats && options.formats.length > 0) {
@@ -14144,6 +14166,3 @@ ${error48.issues.map((e, i2) => ` ${i2 + 1}. ${e.path.join(".") || "root"}: ${e
14144
14166
  return result;
14145
14167
  }
14146
14168
  }
14147
- export {
14148
- YouDotCom
14149
- };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@youdotcom-oss/n8n-nodes-youdotcom",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "n8n community node for You.com APIs - Search, Contents extraction, and Express AI agent",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -35,7 +35,7 @@
35
35
  "rag",
36
36
  "grounding"
37
37
  ],
38
- "type": "module",
38
+ "type": "commonjs",
39
39
  "files": [
40
40
  "dist/**"
41
41
  ],
@@ -45,7 +45,7 @@
45
45
  "scripts": {
46
46
  "build": "bun run build:js && bun run build:assets",
47
47
  "build:assets": "cp nodes/YouDotCom/youdotcom.svg dist/nodes/YouDotCom/ && cp nodes/YouDotCom/YouDotCom.node.json dist/nodes/YouDotCom/ && cp nodes/YouDotCom/youdotcom.svg dist/credentials/",
48
- "build:js": "bun build ./nodes/YouDotCom/YouDotCom.node.ts --outfile ./dist/nodes/YouDotCom/YouDotCom.node.js --target=node --external n8n-workflow && bun build ./credentials/YouDotComApi.credentials.ts --outfile ./dist/credentials/YouDotComApi.credentials.js --target=node --external n8n-workflow",
48
+ "build:js": "bun build ./nodes/YouDotCom/YouDotCom.node.ts --outfile ./dist/nodes/YouDotCom/YouDotCom.node.js --target=node --format cjs --external n8n-workflow && bun build ./credentials/YouDotComApi.credentials.ts --outfile ./dist/credentials/YouDotComApi.credentials.js --target=node --format cjs --external n8n-workflow",
49
49
  "check": "bun run check:biome && bun run check:types && bun run check:package",
50
50
  "check:biome": "biome check",
51
51
  "check:package": "format-package --check",