@gasboost/fake-core 0.2.0 → 0.3.0
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.
|
@@ -1,4 +1,13 @@
|
|
|
1
|
+
export type InMemoryPropertiesServiceOptions = {
|
|
2
|
+
document?: Record<string, string>;
|
|
3
|
+
user?: Record<string, string>;
|
|
4
|
+
script?: Record<string, string>;
|
|
5
|
+
};
|
|
1
6
|
export declare class InMemoryPropertiesService implements GoogleAppsScript.Properties.PropertiesService {
|
|
7
|
+
private readonly documentProperties;
|
|
8
|
+
private readonly userProperties;
|
|
9
|
+
private readonly scriptProperties;
|
|
10
|
+
constructor(options?: InMemoryPropertiesServiceOptions);
|
|
2
11
|
getDocumentProperties(): GoogleAppsScript.Properties.Properties;
|
|
3
12
|
getUserProperties(): GoogleAppsScript.Properties.Properties;
|
|
4
13
|
getScriptProperties(): GoogleAppsScript.Properties.Properties;
|
|
@@ -3,14 +3,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.InMemoryPropertiesService = void 0;
|
|
4
4
|
const InMemoryProperties_1 = require("./InMemoryProperties");
|
|
5
5
|
class InMemoryPropertiesService {
|
|
6
|
+
documentProperties = new InMemoryProperties_1.InMemoryProperties();
|
|
7
|
+
userProperties = new InMemoryProperties_1.InMemoryProperties();
|
|
8
|
+
scriptProperties = new InMemoryProperties_1.InMemoryProperties();
|
|
9
|
+
constructor(options = {}) {
|
|
10
|
+
this.documentProperties.setProperties(options.document ?? {});
|
|
11
|
+
this.userProperties.setProperties(options.user ?? {});
|
|
12
|
+
this.scriptProperties.setProperties(options.script ?? {});
|
|
13
|
+
}
|
|
6
14
|
getDocumentProperties() {
|
|
7
|
-
return
|
|
15
|
+
return this.documentProperties;
|
|
8
16
|
}
|
|
9
17
|
getUserProperties() {
|
|
10
|
-
return
|
|
18
|
+
return this.userProperties;
|
|
11
19
|
}
|
|
12
20
|
getScriptProperties() {
|
|
13
|
-
return
|
|
21
|
+
return this.scriptProperties;
|
|
14
22
|
}
|
|
15
23
|
}
|
|
16
24
|
exports.InMemoryPropertiesService = InMemoryPropertiesService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InMemoryPropertiesService.js","sourceRoot":"","sources":["../../src/properties-service/InMemoryPropertiesService.ts"],"names":[],"mappings":";;;AAAA,6DAA0D;
|
|
1
|
+
{"version":3,"file":"InMemoryPropertiesService.js","sourceRoot":"","sources":["../../src/properties-service/InMemoryPropertiesService.ts"],"names":[],"mappings":";;;AAAA,6DAA0D;AAQ1D,MAAa,yBAAyB;IAGnB,kBAAkB,GAAG,IAAI,uCAAkB,EAAE,CAAC;IAC9C,cAAc,GAAG,IAAI,uCAAkB,EAAE,CAAC;IAC1C,gBAAgB,GAAG,IAAI,uCAAkB,EAAE,CAAC;IAE7D,YAAY,UAA4C,EAAE;QACxD,IAAI,CAAC,kBAAkB,CAAC,aAAa,CAAC,OAAO,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC;QAC9D,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC;QACtD,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,OAAO,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC;IAC5D,CAAC;IAED,qBAAqB;QACnB,OAAO,IAAI,CAAC,kBAAkB,CAAC;IACjC,CAAC;IAED,iBAAiB;QACf,OAAO,IAAI,CAAC,cAAc,CAAC;IAC7B,CAAC;IAED,mBAAmB;QACjB,OAAO,IAAI,CAAC,gBAAgB,CAAC;IAC/B,CAAC;CACF;AAxBD,8DAwBC"}
|
package/package.json
CHANGED