@resoc/create-img
Advanced tools
Comparing version 0.5.3 to 0.5.4
@@ -387,7 +387,9 @@ import { renderTemplateToHtml, ParamType, paramValueToString, stringToParamValue } from '@resoc/core'; | ||
case 1: | ||
if (!(_a.sent())) { | ||
initImageDateStorage(storagePath); | ||
} | ||
return [4 /*yield*/, promises.readFile(storagePath)]; | ||
if (!!(_a.sent())) return [3 /*break*/, 3]; | ||
return [4 /*yield*/, initImageDateStorage(storagePath)]; | ||
case 2: | ||
_a.sent(); | ||
_a.label = 3; | ||
case 3: return [4 /*yield*/, promises.readFile(storagePath)]; | ||
case 4: | ||
storageContent = _a.sent(); | ||
@@ -394,0 +396,0 @@ storage = JSON.parse(storageContent.toString()); |
@@ -399,7 +399,9 @@ 'use strict'; | ||
case 1: | ||
if (!(_a.sent())) { | ||
initImageDateStorage(storagePath); | ||
} | ||
return [4 /*yield*/, fs.promises.readFile(storagePath)]; | ||
if (!!(_a.sent())) return [3 /*break*/, 3]; | ||
return [4 /*yield*/, initImageDateStorage(storagePath)]; | ||
case 2: | ||
_a.sent(); | ||
_a.label = 3; | ||
case 3: return [4 /*yield*/, fs.promises.readFile(storagePath)]; | ||
case 4: | ||
storageContent = _a.sent(); | ||
@@ -406,0 +408,0 @@ storage = JSON.parse(storageContent.toString()); |
{ | ||
"name": "@resoc/create-img", | ||
"version": "0.5.3", | ||
"version": "0.5.4", | ||
"description": "Create an image based on a Resoc image template", | ||
@@ -60,3 +60,3 @@ "main": "build/index.js", | ||
}, | ||
"gitHead": "35c4e434fd1483c2bb4935b8fc8e7eae103e4370" | ||
"gitHead": "e89d197ef6259412114ff56c2c002adaf277b196" | ||
} |
@@ -16,3 +16,3 @@ import { ImageTemplate, ParamValues } from "@resoc/core" | ||
if (!await fileExists(storagePath)) { | ||
initImageDateStorage(storagePath); | ||
await initImageDateStorage(storagePath); | ||
} | ||
@@ -19,0 +19,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
168244
1730