sfc-utils 1.3.30 → 1.3.33

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 (2) hide show
  1. package/copy/sheets.js +6 -6
  2. package/package.json +1 -1
package/copy/sheets.js CHANGED
@@ -37,24 +37,24 @@ var cast = function (str, forceStr) {
37
37
  };
38
38
 
39
39
  let googleAuth = (project, directory = null, forceStr = false) => {
40
- return new Promise(resolve => {
40
+ return new Promise(resolveFinal => {
41
41
  var auth = null;
42
42
  authObj.authenticate({ fallback: false }).then((resp) => {
43
43
  auth = resp;
44
- grabSheets(auth, project, directory, forceStr).then(() => resolve()).catch(() => {
44
+ grabSheets(auth, project, directory, forceStr).catch(() => {
45
45
  // If the first attempt failed, then make another req using the fallback
46
46
  authObj.authenticate({ fallback: true }).then((resp) => {
47
47
  auth = resp;
48
- grabSheets(auth, project, directory, forceStr).then(() => resolve());
48
+ grabSheets(auth, project, directory, forceStr).then(() => {console.log("RES 1"); return resolveFinal();});
49
49
  });
50
- });
50
+ }).then(() => {console.log("RES 2"); return resolveFinal();});
51
51
  })
52
52
  .catch(() => {
53
53
  // Failure if we fall back but there's no token
54
54
  auth = authObj.task();
55
- grabSheets(auth, project, directory, forceStr).then(() => resolve());
55
+ grabSheets(auth, project, directory, forceStr).then(() => {console.log("RES 3"); return resolveFinal();});
56
56
  });
57
- }
57
+ })
58
58
  };
59
59
 
60
60
  let grabSheets = (auth, project, directory, forceStr) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfc-utils",
3
- "version": "1.3.30",
3
+ "version": "1.3.33",
4
4
  "author": "ewagstaff <evanjwagstaff@gmail.com>",
5
5
  "dependencies": {
6
6
  "archieml": "^0.4.2",