Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@resoc/create-img

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@resoc/create-img - npm Package Compare versions

Comparing version 0.5.3 to 0.5.4

10

build/index.es.js

@@ -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());

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc