@bobfrankston/mailx-settings 0.1.21 → 0.1.23
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/cloud.d.ts.map +1 -1
- package/cloud.js +14 -0
- package/package.json +1 -1
package/cloud.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud.d.ts","sourceRoot":"","sources":["cloud.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;
|
|
1
|
+
{"version":3,"file":"cloud.d.ts","sourceRoot":"","sources":["cloud.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAoKH;;;;;;;;;oDASoD;AACpD,wBAAsB,0BAA0B,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CA8BnF;AAcD;;;;;;;;;;;;;;;;;6CAiB6C;AAC7C,wBAAsB,wBAAwB,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAwBvE;AA6FD,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE1D,MAAM,WAAW,SAAS;IACtB,kFAAkF;IAClF,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC/C,uGAAuG;IACvG,KAAK,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACxD,8BAA8B;IAC9B,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAC9C;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAuBtF;AAED;;;;2DAI2D;AAC3D,wBAAsB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAAC,CAoBvG"}
|
package/cloud.js
CHANGED
|
@@ -84,6 +84,13 @@ async function getGoogleDriveToken() {
|
|
|
84
84
|
tokenFileName: "oauth-token.json",
|
|
85
85
|
credentialsKey: "installed",
|
|
86
86
|
includeOfflineAccess: true,
|
|
87
|
+
logFn: (type, message) => {
|
|
88
|
+
const p = ` [oauth gdrive-via-${entry}]`;
|
|
89
|
+
if (type === "error")
|
|
90
|
+
console.error(`${p} ${message}`);
|
|
91
|
+
else
|
|
92
|
+
console.log(`${p} ${message}`);
|
|
93
|
+
},
|
|
87
94
|
});
|
|
88
95
|
if (refreshed?.access_token) {
|
|
89
96
|
console.log(` [cloud] GDrive auth: success (via Gmail token)`);
|
|
@@ -126,6 +133,13 @@ async function getGoogleDriveToken() {
|
|
|
126
133
|
tokenFileName: "token.json",
|
|
127
134
|
credentialsKey: "installed",
|
|
128
135
|
includeOfflineAccess: true,
|
|
136
|
+
logFn: (type, message) => {
|
|
137
|
+
const p = " [oauth gdrive]";
|
|
138
|
+
if (type === "error")
|
|
139
|
+
console.error(`${p} ${message}`);
|
|
140
|
+
else
|
|
141
|
+
console.log(`${p} ${message}`);
|
|
142
|
+
},
|
|
129
143
|
});
|
|
130
144
|
if (token?.access_token) {
|
|
131
145
|
console.log(` [cloud] GDrive auth: success (dedicated token)`);
|