@mcpher/gas-fakes 2.0.9 → 2.0.11
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/package.json +1 -1
- package/src/support/auth.js +0 -1
- package/src/support/sxauth.js +5 -1
package/package.json
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"name": "@mcpher/gas-fakes",
|
|
35
35
|
"author": "bruce mcpherson",
|
|
36
|
-
"version": "2.0.
|
|
36
|
+
"version": "2.0.11",
|
|
37
37
|
"license": "MIT",
|
|
38
38
|
"main": "main.js",
|
|
39
39
|
"description": "An implementation of the Google Workspace Apps Script runtime: Run native App Script Code on Node and Cloud Run",
|
package/src/support/auth.js
CHANGED
|
@@ -2,7 +2,6 @@ import { GoogleAuth, JWT, Impersonated, OAuth2Client } from "google-auth-library
|
|
|
2
2
|
import is from "@sindresorhus/is";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
import { syncLog, syncError } from "./workersync/synclogger.js";
|
|
5
|
-
import fs from "node:fs";
|
|
6
5
|
|
|
7
6
|
const _authScopes = new Set([]);
|
|
8
7
|
|
package/src/support/sxauth.js
CHANGED
|
@@ -77,9 +77,13 @@ export const sxInit = async ({ manifestPath, claspPath, settingsPath, cachePath,
|
|
|
77
77
|
// now update all that if anything has changed
|
|
78
78
|
const strSet = JSON.stringify(settings, null, 2)
|
|
79
79
|
if (JSON.stringify(_settings, null, 2) !== strSet) {
|
|
80
|
+
try {
|
|
80
81
|
await mkdir(settingsDir, { recursive: true })
|
|
81
82
|
syncLog(`...writing to ${settingsPath}`);
|
|
82
|
-
writeFile(settingsPath, strSet, { flag: 'w' })
|
|
83
|
+
await writeFile(settingsPath, strSet, { flag: 'w' })
|
|
84
|
+
} catch (err) {
|
|
85
|
+
syncWarn(`...unable to write settings file (normal in readonly filesystem) - skipping ${settingsPath}: ${err}`)
|
|
86
|
+
}
|
|
83
87
|
}
|
|
84
88
|
|
|
85
89
|
// get the required scopes and set them
|