@mcpher/gas-fakes 1.2.5 → 1.2.7

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/gas-fakes.js CHANGED
@@ -5,6 +5,7 @@
5
5
  * v0.0.1
6
6
  */
7
7
  import fs from "fs";
8
+ import path from "path";
8
9
  import { Command } from "commander";
9
10
  import dotenv from 'dotenv'
10
11
 
@@ -63,10 +64,10 @@ program
63
64
  process.exit();
64
65
  }
65
66
  if (gfsettings) {
66
- obj.gfSettings= gfsettings
67
+ obj.gfSettings = path.resolve(gfsettings);
67
68
  }
68
69
  if (env) {
69
- dotenv.config({ path: env })
70
+ dotenv.config({ path: path.resolve(env) });
70
71
  }
71
72
  if (filename) {
72
73
  obj.filename = filename;
package/package.json CHANGED
@@ -75,13 +75,13 @@
75
75
  },
76
76
  "name": "@mcpher/gas-fakes",
77
77
  "author": "bruce mcpherson",
78
- "version": "1.2.5",
78
+ "version": "1.2.7",
79
79
  "license": "MIT",
80
80
  "main": "main.js",
81
81
  "description": "A proof of concept implementation of Apps Script Environment on Node",
82
82
  "repository": "github:brucemcpherson/gas-fakes",
83
83
  "homepage": "https://ramblings.mcpher.com/a-proof-of-concept-implementation-of-apps-script-environment-on-node/",
84
84
  "bin": {
85
- "gas-fakes": "cli/gas-fakes.js"
85
+ "gas-fakes": "gas-fakes.js"
86
86
  }
87
87
  }
@@ -22,7 +22,7 @@ import { callSync } from "./workersync/synchronizer.js";
22
22
 
23
23
  const manifestDefaultPath = "./appsscript.json";
24
24
  const claspDefaultPath = "./.clasp.json";
25
- const settingsDefaultPath = "./gasfakes.json" || process.env.GF_SETTINGS_PATH;
25
+ const settingsDefaultPath = process.env.GF_SETTINGS_PATH || "./gasfakes.json";
26
26
  const propertiesDefaultPath = "/tmp/gas-fakes/properties";
27
27
  const cacheDefaultPath = "/tmp/gas-fakes/cache";
28
28
  // note that functions like Sheets.newGridRange() etc create objects that contain get and set functions
package/gasfakes.json DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "manifest": "./appsscript.json",
3
- "clasp": "./.clasp.json",
4
- "scriptId": "7bcfb7cc-6200-4a7d-9f33-e1a3f3d19529",
5
- "documentId": null,
6
- "cache": "/tmp/gas-fakes/cache",
7
- "properties": "/tmp/gas-fakes/properties"
8
- }