@segment/action-destinations 3.133.1-staging.190 → 3.133.1-staging.195
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.
|
@@ -4,6 +4,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const postSheet_1 = __importDefault(require("../google-sheets/postSheet"));
|
|
7
|
+
const origPerform = postSheet_1.default.performBatch || (() => { });
|
|
8
|
+
postSheet_1.default.performBatch = (request, obj) => {
|
|
9
|
+
const { features } = obj;
|
|
10
|
+
if (features && features['gameday-verticalized-integrations']) {
|
|
11
|
+
throw new Error('ECONNRESET: socket hang up');
|
|
12
|
+
}
|
|
13
|
+
else
|
|
14
|
+
origPerform(request, obj);
|
|
15
|
+
};
|
|
7
16
|
const destination = {
|
|
8
17
|
name: 'Google Sheets (dev only)',
|
|
9
18
|
slug: 'actions-google-sheets-dev',
|
|
@@ -12,9 +21,7 @@ const destination = {
|
|
|
12
21
|
scheme: 'oauth-managed',
|
|
13
22
|
fields: {},
|
|
14
23
|
refreshAccessToken: async (request, { auth }) => {
|
|
15
|
-
|
|
16
|
-
throw new Error('destination misconfigured: missing refresh token URL');
|
|
17
|
-
const res = await request(auth.refreshTokenUrl, {
|
|
24
|
+
const res = await request('https://www.googleapis.com/oauth2/v4/token', {
|
|
18
25
|
method: 'POST',
|
|
19
26
|
body: new URLSearchParams({
|
|
20
27
|
refresh_token: auth.refreshToken,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/google-sheets-dev/index.ts"],"names":[],"mappings":";;;;;AAGA,2EAAkD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/google-sheets-dev/index.ts"],"names":[],"mappings":";;;;;AAGA,2EAAkD;AASlD,MAAM,WAAW,GAAG,mBAAS,CAAC,YAAY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 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@segment/action-destinations",
|
|
3
3
|
"description": "Destination Actions engine and definitions.",
|
|
4
|
-
"version": "3.133.1-staging.
|
|
4
|
+
"version": "3.133.1-staging.195+b03941b5",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/segmentio/action-destinations",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"lcov"
|
|
69
69
|
]
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "b03941b511e07e07cd6d79aa5374e193138fc247"
|
|
72
72
|
}
|