@zapier/zapier-sdk-cli 0.34.11 → 0.34.12
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/CHANGELOG.md +9 -0
- package/dist/cli.cjs +6 -5
- package/dist/cli.mjs +6 -5
- package/dist/index.cjs +5 -4
- package/dist/index.mjs +5 -4
- package/dist/package.json +1 -1
- package/dist/src/plugins/login/index.js +1 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @zapier/zapier-sdk-cli
|
|
2
2
|
|
|
3
|
+
## 0.34.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- d9e0f1d: Fix user properties being overwritten by context merge in telemetry events
|
|
8
|
+
- Updated dependencies [d9e0f1d]
|
|
9
|
+
- @zapier/zapier-sdk@0.33.4
|
|
10
|
+
- @zapier/zapier-sdk-mcp@0.9.21
|
|
11
|
+
|
|
3
12
|
## 0.34.11
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/dist/cli.cjs
CHANGED
|
@@ -927,7 +927,7 @@ var SHARED_COMMAND_CLI_OPTIONS = [
|
|
|
927
927
|
|
|
928
928
|
// package.json
|
|
929
929
|
var package_default = {
|
|
930
|
-
version: "0.34.
|
|
930
|
+
version: "0.34.12"};
|
|
931
931
|
|
|
932
932
|
// src/telemetry/builders.ts
|
|
933
933
|
function createCliBaseEvent(context = {}) {
|
|
@@ -2039,9 +2039,10 @@ var loginPlugin = ({
|
|
|
2039
2039
|
const user = await cliLogin.getLoggedInUser();
|
|
2040
2040
|
context.eventEmission.emit(
|
|
2041
2041
|
"platform.sdk.ApplicationLifecycleEvent",
|
|
2042
|
-
zapierSdk.buildApplicationLifecycleEvent(
|
|
2043
|
-
lifecycle_event_type: "login_success"
|
|
2044
|
-
|
|
2042
|
+
zapierSdk.buildApplicationLifecycleEvent(
|
|
2043
|
+
{ lifecycle_event_type: "login_success" },
|
|
2044
|
+
{ customuser_id: user.customUserId, account_id: user.accountId }
|
|
2045
|
+
)
|
|
2045
2046
|
);
|
|
2046
2047
|
console.log(`\u2705 Successfully logged in as ${user.email}`);
|
|
2047
2048
|
};
|
|
@@ -4203,7 +4204,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
4203
4204
|
// package.json with { type: 'json' }
|
|
4204
4205
|
var package_default2 = {
|
|
4205
4206
|
name: "@zapier/zapier-sdk-cli",
|
|
4206
|
-
version: "0.34.
|
|
4207
|
+
version: "0.34.12"};
|
|
4207
4208
|
var ONE_DAY_MS = 24 * 60 * 60 * 1e3;
|
|
4208
4209
|
var CACHE_RESET_INTERVAL_MS = (() => {
|
|
4209
4210
|
const { ZAPIER_SDK_UPDATE_CHECK_INTERVAL_MS = `${ONE_DAY_MS}` } = process.env;
|
package/dist/cli.mjs
CHANGED
|
@@ -890,7 +890,7 @@ var SHARED_COMMAND_CLI_OPTIONS = [
|
|
|
890
890
|
|
|
891
891
|
// package.json
|
|
892
892
|
var package_default = {
|
|
893
|
-
version: "0.34.
|
|
893
|
+
version: "0.34.12"};
|
|
894
894
|
|
|
895
895
|
// src/telemetry/builders.ts
|
|
896
896
|
function createCliBaseEvent(context = {}) {
|
|
@@ -2002,9 +2002,10 @@ var loginPlugin = ({
|
|
|
2002
2002
|
const user = await getLoggedInUser();
|
|
2003
2003
|
context.eventEmission.emit(
|
|
2004
2004
|
"platform.sdk.ApplicationLifecycleEvent",
|
|
2005
|
-
buildApplicationLifecycleEvent(
|
|
2006
|
-
lifecycle_event_type: "login_success"
|
|
2007
|
-
|
|
2005
|
+
buildApplicationLifecycleEvent(
|
|
2006
|
+
{ lifecycle_event_type: "login_success" },
|
|
2007
|
+
{ customuser_id: user.customUserId, account_id: user.accountId }
|
|
2008
|
+
)
|
|
2008
2009
|
);
|
|
2009
2010
|
console.log(`\u2705 Successfully logged in as ${user.email}`);
|
|
2010
2011
|
};
|
|
@@ -4166,7 +4167,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
4166
4167
|
// package.json with { type: 'json' }
|
|
4167
4168
|
var package_default2 = {
|
|
4168
4169
|
name: "@zapier/zapier-sdk-cli",
|
|
4169
|
-
version: "0.34.
|
|
4170
|
+
version: "0.34.12"};
|
|
4170
4171
|
var ONE_DAY_MS = 24 * 60 * 60 * 1e3;
|
|
4171
4172
|
var CACHE_RESET_INTERVAL_MS = (() => {
|
|
4172
4173
|
const { ZAPIER_SDK_UPDATE_CHECK_INTERVAL_MS = `${ONE_DAY_MS}` } = process.env;
|
package/dist/index.cjs
CHANGED
|
@@ -371,9 +371,10 @@ var loginPlugin = ({
|
|
|
371
371
|
const user = await cliLogin.getLoggedInUser();
|
|
372
372
|
context.eventEmission.emit(
|
|
373
373
|
"platform.sdk.ApplicationLifecycleEvent",
|
|
374
|
-
zapierSdk.buildApplicationLifecycleEvent(
|
|
375
|
-
lifecycle_event_type: "login_success"
|
|
376
|
-
|
|
374
|
+
zapierSdk.buildApplicationLifecycleEvent(
|
|
375
|
+
{ lifecycle_event_type: "login_success" },
|
|
376
|
+
{ customuser_id: user.customUserId, account_id: user.accountId }
|
|
377
|
+
)
|
|
377
378
|
);
|
|
378
379
|
console.log(`\u2705 Successfully logged in as ${user.email}`);
|
|
379
380
|
};
|
|
@@ -2507,7 +2508,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
2507
2508
|
|
|
2508
2509
|
// package.json
|
|
2509
2510
|
var package_default = {
|
|
2510
|
-
version: "0.34.
|
|
2511
|
+
version: "0.34.12"};
|
|
2511
2512
|
|
|
2512
2513
|
// src/telemetry/builders.ts
|
|
2513
2514
|
function createCliBaseEvent(context = {}) {
|
package/dist/index.mjs
CHANGED
|
@@ -338,9 +338,10 @@ var loginPlugin = ({
|
|
|
338
338
|
const user = await getLoggedInUser();
|
|
339
339
|
context.eventEmission.emit(
|
|
340
340
|
"platform.sdk.ApplicationLifecycleEvent",
|
|
341
|
-
buildApplicationLifecycleEvent(
|
|
342
|
-
lifecycle_event_type: "login_success"
|
|
343
|
-
|
|
341
|
+
buildApplicationLifecycleEvent(
|
|
342
|
+
{ lifecycle_event_type: "login_success" },
|
|
343
|
+
{ customuser_id: user.customUserId, account_id: user.accountId }
|
|
344
|
+
)
|
|
344
345
|
);
|
|
345
346
|
console.log(`\u2705 Successfully logged in as ${user.email}`);
|
|
346
347
|
};
|
|
@@ -2474,7 +2475,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
2474
2475
|
|
|
2475
2476
|
// package.json
|
|
2476
2477
|
var package_default = {
|
|
2477
|
-
version: "0.34.
|
|
2478
|
+
version: "0.34.12"};
|
|
2478
2479
|
|
|
2479
2480
|
// src/telemetry/builders.ts
|
|
2480
2481
|
function createCliBaseEvent(context = {}) {
|
package/dist/package.json
CHANGED
|
@@ -30,9 +30,7 @@ export const loginPlugin = ({ context, }) => {
|
|
|
30
30
|
credentials: pkceCredentials,
|
|
31
31
|
});
|
|
32
32
|
const user = await getLoggedInUser();
|
|
33
|
-
context.eventEmission.emit("platform.sdk.ApplicationLifecycleEvent", buildApplicationLifecycleEvent({
|
|
34
|
-
lifecycle_event_type: "login_success",
|
|
35
|
-
}));
|
|
33
|
+
context.eventEmission.emit("platform.sdk.ApplicationLifecycleEvent", buildApplicationLifecycleEvent({ lifecycle_event_type: "login_success" }, { customuser_id: user.customUserId, account_id: user.accountId }));
|
|
36
34
|
console.log(`✅ Successfully logged in as ${user.email}`);
|
|
37
35
|
};
|
|
38
36
|
return {
|