@picteus/extension-sdk 0.3.2 → 0.3.3
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.
|
@@ -119,6 +119,7 @@ export declare class Communicator {
|
|
|
119
119
|
export type SettingsValue = Record<string, any>;
|
|
120
120
|
export declare class PicteusExtension {
|
|
121
121
|
static getSdkVersion(): string;
|
|
122
|
+
static getCacheDirectoryPath(): string;
|
|
122
123
|
protected readonly logger: Logger;
|
|
123
124
|
protected readonly parameters: ExtensionParameters;
|
|
124
125
|
protected readonly extensionId: string;
|
package/dist/picteusExtension.js
CHANGED
|
@@ -154,6 +154,9 @@ export class PicteusExtension {
|
|
|
154
154
|
static getSdkVersion() {
|
|
155
155
|
return JSON.parse(fs.readFileSync(path.join(dirname(fileURLToPath(import.meta.url)), "..", "package.json"), { encoding: "utf8" })).version;
|
|
156
156
|
}
|
|
157
|
+
static getCacheDirectoryPath() {
|
|
158
|
+
return path.join(process.cwd(), ".cache");
|
|
159
|
+
}
|
|
157
160
|
logger = new Logger();
|
|
158
161
|
parameters;
|
|
159
162
|
extensionId;
|