@keystrokehq/simplesat 0.1.2 → 0.1.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.
Files changed (49) hide show
  1. package/dist/actions/create-or-update-customer2.cjs +1 -1
  2. package/dist/actions/create-or-update-customer2.cjs.map +1 -1
  3. package/dist/actions/create-or-update-customer2.d.cts +1 -1
  4. package/dist/actions/create-or-update-customer2.d.mts +1 -1
  5. package/dist/actions/create-or-update-customer2.mjs +1 -1
  6. package/dist/actions/create-or-update-customer2.mjs.map +1 -1
  7. package/dist/actions/create-or-update-team-member.cjs +1 -1
  8. package/dist/actions/create-or-update-team-member.cjs.map +1 -1
  9. package/dist/actions/create-or-update-team-member.d.cts +1 -1
  10. package/dist/actions/create-or-update-team-member.d.mts +1 -1
  11. package/dist/actions/create-or-update-team-member.mjs +1 -1
  12. package/dist/actions/create-or-update-team-member.mjs.map +1 -1
  13. package/dist/actions/get-customer.cjs +2 -2
  14. package/dist/actions/get-customer.cjs.map +1 -1
  15. package/dist/actions/get-customer.d.cts +2 -2
  16. package/dist/actions/get-customer.d.mts +2 -2
  17. package/dist/actions/get-customer.mjs +2 -2
  18. package/dist/actions/get-customer.mjs.map +1 -1
  19. package/dist/actions/list-questions.cjs +5 -5
  20. package/dist/actions/list-questions.cjs.map +1 -1
  21. package/dist/actions/list-questions.d.cts +5 -5
  22. package/dist/actions/list-questions.d.mts +5 -5
  23. package/dist/actions/list-questions.mjs +5 -5
  24. package/dist/actions/list-questions.mjs.map +1 -1
  25. package/dist/actions/list-surveys.cjs +2 -2
  26. package/dist/actions/list-surveys.cjs.map +1 -1
  27. package/dist/actions/list-surveys.d.cts +2 -2
  28. package/dist/actions/list-surveys.d.mts +2 -2
  29. package/dist/actions/list-surveys.mjs +2 -2
  30. package/dist/actions/list-surveys.mjs.map +1 -1
  31. package/dist/actions/search-answers.cjs +9 -9
  32. package/dist/actions/search-answers.cjs.map +1 -1
  33. package/dist/actions/search-answers.d.cts +13 -12
  34. package/dist/actions/search-answers.d.mts +13 -12
  35. package/dist/actions/search-answers.mjs +9 -9
  36. package/dist/actions/search-answers.mjs.map +1 -1
  37. package/dist/actions/search-responses.cjs +3 -3
  38. package/dist/actions/search-responses.cjs.map +1 -1
  39. package/dist/actions/search-responses.d.cts +4 -3
  40. package/dist/actions/search-responses.d.mts +4 -3
  41. package/dist/actions/search-responses.mjs +3 -3
  42. package/dist/actions/search-responses.mjs.map +1 -1
  43. package/dist/actions/update-customer.cjs +2 -2
  44. package/dist/actions/update-customer.cjs.map +1 -1
  45. package/dist/actions/update-customer.d.cts +3 -3
  46. package/dist/actions/update-customer.d.mts +3 -3
  47. package/dist/actions/update-customer.mjs +2 -2
  48. package/dist/actions/update-customer.mjs.map +1 -1
  49. package/package.json +1 -1
@@ -8,7 +8,7 @@ const SimplesatUpdateCustomerInput = zod.z.object({
8
8
  email: zod.z.string().describe("Email address of the customer").optional(),
9
9
  company: zod.z.string().describe("Company name of the customer").optional(),
10
10
  external_id: zod.z.number().int().describe("External identifier for the customer").optional(),
11
- custom_attributes: zod.z.object({}).describe("Custom attributes as key-value pairs. Any custom attribute fields that didn't previously exist will be created.").optional()
11
+ custom_attributes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom attributes as key-value pairs. Any custom attribute fields that didn't previously exist will be created.").optional()
12
12
  });
13
13
  const SimplesatUpdateCustomerOutput = zod.z.object({
14
14
  id: zod.z.number().int().describe("Unique identifier of the customer").nullable(),
@@ -18,7 +18,7 @@ const SimplesatUpdateCustomerOutput = zod.z.object({
18
18
  company: zod.z.string().describe("Company name of the customer").nullable().optional(),
19
19
  external_id: zod.z.number().int().describe("External identifier for the customer").nullable().optional(),
20
20
  custom_attributes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom attributes of the customer").nullable().optional()
21
- });
21
+ }).passthrough();
22
22
  const simplesatUpdateCustomer = require_action.action("SIMPLESAT_UPDATE_CUSTOMER", {
23
23
  slug: "simplesat-update-customer",
24
24
  name: "Update Customer",
@@ -1 +1 @@
1
- {"version":3,"file":"update-customer.cjs","names":["z","action"],"sources":["../../src/actions/update-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatUpdateCustomerInput = z.object({\n id: z.string().describe(\"The unique identifier of the customer to update\"),\n name: z.string().describe(\"Full name of the customer\").optional(),\n tags: z.array(z.string()).describe(\"Array of tags associated with the customer\").optional(),\n email: z.string().describe(\"Email address of the customer\").optional(),\n company: z.string().describe(\"Company name of the customer\").optional(),\n external_id: z.number().int().describe(\"External identifier for the customer\").optional(),\n custom_attributes: z.object({}).describe(\"Custom attributes as key-value pairs. Any custom attribute fields that didn't previously exist will be created.\").optional(),\n});\nexport const SimplesatUpdateCustomerOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the customer\").nullable(),\n name: z.string().describe(\"Full name of the customer\").nullable().optional(),\n tags: z.array(z.string()).describe(\"List of tags associated with the customer\").nullable().optional(),\n email: z.string().describe(\"Email address of the customer\").nullable().optional(),\n company: z.string().describe(\"Company name of the customer\").nullable().optional(),\n external_id: z.number().int().describe(\"External identifier for the customer\").nullable().optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes of the customer\").nullable().optional(),\n});\n\nexport const simplesatUpdateCustomer = action(\"SIMPLESAT_UPDATE_CUSTOMER\", {\n slug: \"simplesat-update-customer\",\n name: \"Update Customer\",\n description: \"Tool to update an existing customer by their Simplesat ID. Use when you need to modify customer information such as name, email, company, external ID, tags, or custom attributes.\",\n input: SimplesatUpdateCustomerInput,\n output: SimplesatUpdateCustomerOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,MAAMA,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zH,CAAC;AAED,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-customer.cjs","names":["z","action"],"sources":["../../src/actions/update-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatUpdateCustomerInput = z.object({\n id: z.string().describe(\"The unique identifier of the customer to update\"),\n name: z.string().describe(\"Full name of the customer\").optional(),\n tags: z.array(z.string()).describe(\"Array of tags associated with the customer\").optional(),\n email: z.string().describe(\"Email address of the customer\").optional(),\n company: z.string().describe(\"Company name of the customer\").optional(),\n external_id: z.number().int().describe(\"External identifier for the customer\").optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes as key-value pairs. Any custom attribute fields that didn't previously exist will be created.\").optional(),\n});\nexport const SimplesatUpdateCustomerOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the customer\").nullable(),\n name: z.string().describe(\"Full name of the customer\").nullable().optional(),\n tags: z.array(z.string()).describe(\"List of tags associated with the customer\").nullable().optional(),\n email: z.string().describe(\"Email address of the customer\").nullable().optional(),\n company: z.string().describe(\"Company name of the customer\").nullable().optional(),\n external_id: z.number().int().describe(\"External identifier for the customer\").nullable().optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes of the customer\").nullable().optional(),\n}).passthrough();\n\nexport const simplesatUpdateCustomer = action(\"SIMPLESAT_UPDATE_CUSTOMER\", {\n slug: \"simplesat-update-customer\",\n name: \"Update Customer\",\n description: \"Tool to update an existing customer by their Simplesat ID. Use when you need to modify customer information such as name, email, company, external ID, tags, or custom attributes.\",\n input: SimplesatUpdateCustomerInput,\n output: SimplesatUpdateCustomerOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;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CACnG,mBAAmBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -8,7 +8,7 @@ declare const SimplesatUpdateCustomerInput: z.ZodObject<{
8
8
  email: z.ZodOptional<z.ZodString>;
9
9
  company: z.ZodOptional<z.ZodString>;
10
10
  external_id: z.ZodOptional<z.ZodNumber>;
11
- custom_attributes: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
11
+ custom_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12
12
  }, z.core.$strip>;
13
13
  declare const SimplesatUpdateCustomerOutput: z.ZodObject<{
14
14
  id: z.ZodNullable<z.ZodNumber>;
@@ -18,7 +18,7 @@ declare const SimplesatUpdateCustomerOutput: z.ZodObject<{
18
18
  company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
19
  external_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
20
  custom_attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
21
- }, z.core.$strip>;
21
+ }, z.core.$loose>;
22
22
  declare const simplesatUpdateCustomer: import("@keystrokehq/action").WorkflowActionDefinition<{
23
23
  id: string;
24
24
  name?: string | undefined;
@@ -26,7 +26,7 @@ declare const simplesatUpdateCustomer: import("@keystrokehq/action").WorkflowAct
26
26
  email?: string | undefined;
27
27
  company?: string | undefined;
28
28
  external_id?: number | undefined;
29
- custom_attributes?: Record<string, never> | undefined;
29
+ custom_attributes?: Record<string, unknown> | undefined;
30
30
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
31
31
  //#endregion
32
32
  export { simplesatUpdateCustomer };
@@ -8,7 +8,7 @@ declare const SimplesatUpdateCustomerInput: z.ZodObject<{
8
8
  email: z.ZodOptional<z.ZodString>;
9
9
  company: z.ZodOptional<z.ZodString>;
10
10
  external_id: z.ZodOptional<z.ZodNumber>;
11
- custom_attributes: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
11
+ custom_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12
12
  }, z.core.$strip>;
13
13
  declare const SimplesatUpdateCustomerOutput: z.ZodObject<{
14
14
  id: z.ZodNullable<z.ZodNumber>;
@@ -18,7 +18,7 @@ declare const SimplesatUpdateCustomerOutput: z.ZodObject<{
18
18
  company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
19
  external_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
20
  custom_attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
21
- }, z.core.$strip>;
21
+ }, z.core.$loose>;
22
22
  declare const simplesatUpdateCustomer: import("@keystrokehq/action").WorkflowActionDefinition<{
23
23
  id: string;
24
24
  name?: string | undefined;
@@ -26,7 +26,7 @@ declare const simplesatUpdateCustomer: import("@keystrokehq/action").WorkflowAct
26
26
  email?: string | undefined;
27
27
  company?: string | undefined;
28
28
  external_id?: number | undefined;
29
- custom_attributes?: Record<string, never> | undefined;
29
+ custom_attributes?: Record<string, unknown> | undefined;
30
30
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
31
31
  //#endregion
32
32
  export { simplesatUpdateCustomer };
@@ -11,7 +11,7 @@ const simplesatUpdateCustomer = action("SIMPLESAT_UPDATE_CUSTOMER", {
11
11
  email: z.string().describe("Email address of the customer").optional(),
12
12
  company: z.string().describe("Company name of the customer").optional(),
13
13
  external_id: z.number().int().describe("External identifier for the customer").optional(),
14
- custom_attributes: z.object({}).describe("Custom attributes as key-value pairs. Any custom attribute fields that didn't previously exist will be created.").optional()
14
+ custom_attributes: z.record(z.string(), z.unknown()).describe("Custom attributes as key-value pairs. Any custom attribute fields that didn't previously exist will be created.").optional()
15
15
  }),
16
16
  output: z.object({
17
17
  id: z.number().int().describe("Unique identifier of the customer").nullable(),
@@ -21,7 +21,7 @@ const simplesatUpdateCustomer = action("SIMPLESAT_UPDATE_CUSTOMER", {
21
21
  company: z.string().describe("Company name of the customer").nullable().optional(),
22
22
  external_id: z.number().int().describe("External identifier for the customer").nullable().optional(),
23
23
  custom_attributes: z.record(z.string(), z.unknown()).describe("Custom attributes of the customer").nullable().optional()
24
- })
24
+ }).passthrough()
25
25
  });
26
26
  //#endregion
27
27
  export { simplesatUpdateCustomer };
@@ -1 +1 @@
1
- {"version":3,"file":"update-customer.mjs","names":[],"sources":["../../src/actions/update-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatUpdateCustomerInput = z.object({\n id: z.string().describe(\"The unique identifier of the customer to update\"),\n name: z.string().describe(\"Full name of the customer\").optional(),\n tags: z.array(z.string()).describe(\"Array of tags associated with the customer\").optional(),\n email: z.string().describe(\"Email address of the customer\").optional(),\n company: z.string().describe(\"Company name of the customer\").optional(),\n external_id: z.number().int().describe(\"External identifier for the customer\").optional(),\n custom_attributes: z.object({}).describe(\"Custom attributes as key-value pairs. Any custom attribute fields that didn't previously exist will be created.\").optional(),\n});\nexport const SimplesatUpdateCustomerOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the customer\").nullable(),\n name: z.string().describe(\"Full name of the customer\").nullable().optional(),\n tags: z.array(z.string()).describe(\"List of tags associated with the customer\").nullable().optional(),\n email: z.string().describe(\"Email address of the customer\").nullable().optional(),\n company: z.string().describe(\"Company name of the customer\").nullable().optional(),\n external_id: z.number().int().describe(\"External identifier for the customer\").nullable().optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes of the customer\").nullable().optional(),\n});\n\nexport const simplesatUpdateCustomer = action(\"SIMPLESAT_UPDATE_CUSTOMER\", {\n slug: \"simplesat-update-customer\",\n name: \"Update Customer\",\n description: \"Tool to update an existing customer by their Simplesat ID. Use when you need to modify customer information such as name, email, company, external ID, tags, or custom attributes.\",\n input: SimplesatUpdateCustomerInput,\n output: SimplesatUpdateCustomerOutput,\n});\n"],"mappings":";;AAuBA,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvB0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;EACzE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EAChE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAC1F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACrE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACtE,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EACxF,mBAAmB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CACvK,CAeS;CACP,QAf2C,EAAE,OAAO;EACpD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC5E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,mBAAmB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"update-customer.mjs","names":[],"sources":["../../src/actions/update-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatUpdateCustomerInput = z.object({\n id: z.string().describe(\"The unique identifier of the customer to update\"),\n name: z.string().describe(\"Full name of the customer\").optional(),\n tags: z.array(z.string()).describe(\"Array of tags associated with the customer\").optional(),\n email: z.string().describe(\"Email address of the customer\").optional(),\n company: z.string().describe(\"Company name of the customer\").optional(),\n external_id: z.number().int().describe(\"External identifier for the customer\").optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes as key-value pairs. Any custom attribute fields that didn't previously exist will be created.\").optional(),\n});\nexport const SimplesatUpdateCustomerOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the customer\").nullable(),\n name: z.string().describe(\"Full name of the customer\").nullable().optional(),\n tags: z.array(z.string()).describe(\"List of tags associated with the customer\").nullable().optional(),\n email: z.string().describe(\"Email address of the customer\").nullable().optional(),\n company: z.string().describe(\"Company name of the customer\").nullable().optional(),\n external_id: z.number().int().describe(\"External identifier for the customer\").nullable().optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes of the customer\").nullable().optional(),\n}).passthrough();\n\nexport const simplesatUpdateCustomer = action(\"SIMPLESAT_UPDATE_CUSTOMER\", {\n slug: \"simplesat-update-customer\",\n name: \"Update Customer\",\n description: \"Tool to update an existing customer by their Simplesat ID. Use when you need to modify customer information such as name, email, company, external ID, tags, or custom attributes.\",\n input: SimplesatUpdateCustomerInput,\n output: SimplesatUpdateCustomerOutput,\n});\n"],"mappings":";;AAuBA,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvB0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;EACzE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EAChE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAC1F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACrE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACtE,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EACxF,mBAAmB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CAC5L,CAeS;CACP,QAf2C,EAAE,OAAO;EACpD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC5E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,mBAAmB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/simplesat",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"