Skip to content

Commit e9c1cd6

Browse files
committed
chore(*): fix lint errors and regenerate readmes
1 parent 5257a44 commit e9c1cd6

File tree

16 files changed

+39
-1616
lines changed

16 files changed

+39
-1616
lines changed

auth-mailchimp-sync/functions/lib/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@
1515
* limitations under the License.
1616
*/
1717
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
1819
return new (P || (P = Promise))(function (resolve, reject) {
1920
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
2021
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
21-
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
22+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
2223
step((generator = generator.apply(thisArg, _arguments || [])).next());
2324
});
2425
};
@@ -37,7 +38,7 @@ try {
3738
catch (err) {
3839
logs.initError(err);
3940
}
40-
exports.addUserToList = functions.handler.auth.user.onCreate((user) => __awaiter(this, void 0, void 0, function* () {
41+
exports.addUserToList = functions.handler.auth.user.onCreate((user) => __awaiter(void 0, void 0, void 0, function* () {
4142
logs.start();
4243
if (!mailchimp) {
4344
logs.mailchimpNotInitialized();
@@ -61,7 +62,7 @@ exports.addUserToList = functions.handler.auth.user.onCreate((user) => __awaiter
6162
logs.errorAddUser(err);
6263
}
6364
}));
64-
exports.removeUserFromList = functions.handler.auth.user.onDelete((user) => __awaiter(this, void 0, void 0, function* () {
65+
exports.removeUserFromList = functions.handler.auth.user.onDelete((user) => __awaiter(void 0, void 0, void 0, function* () {
6566
logs.start();
6667
if (!mailchimp) {
6768
logs.mailchimpNotInitialized();

auth-mailchimp-sync/functions/lib/logs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717
Object.defineProperty(exports, "__esModule", { value: true });
1818
const config_1 = require("./config");
19-
exports.obfuscatedConfig = Object.assign({}, config_1.default, { mailchimpApiKey: "<omitted>" });
19+
exports.obfuscatedConfig = Object.assign(Object.assign({}, config_1.default), { mailchimpApiKey: "<omitted>" });
2020
exports.complete = () => {
2121
console.log("Completed execution of extension");
2222
};

0 commit comments

Comments
 (0)