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

@live-change/framework

Package Overview
Dependencies
Maintainers
1
Versions
333
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@live-change/framework - npm Package Compare versions

Comparing version 0.4.39 to 0.4.40

.idea/misc.xml

32

lib/utils.js

@@ -1,2 +0,1 @@

const fs = require("fs")

@@ -117,31 +116,2 @@ function typeName(type) {

async function loadJson(jsonPath) {
const text = await new Promise( (resolve, reject) => {
fs.readFile(jsonPath, "utf8", (err, res) => {
if(err) reject(err)
resolve(res)
})
})
return JSON.parse(text)
}
async function saveJson(jsonPath, data) {
const text = JSON.stringify(data, null, " ")
return await new Promise((resolve, reject) => {
fs.writeFile(jsonPath, text, (err, res) => {
if(err) reject(err)
resolve(res)
})
})
}
async function exists(path) {
return await new Promise((resolve, reject) => {
fs.access(path, (err, res) => {
if(err) resolve(false)
resolve(true)
})
})
}
function getProperty(of, propertyName) {

@@ -266,5 +236,5 @@ const path = propertyName.split('.')

module.exports = {
typeName, toJSON, setDifference, mapDifference, crudChanges, loadJson, saveJson, exists,
typeName, toJSON, setDifference, mapDifference, crudChanges,
getProperty, setProperty, getField, setField, isObject, mergeDeep, generateDefault,
prefixRange, rangeProperties
}
{
"name": "@live-change/framework",
"version": "0.4.39",
"version": "0.4.40",
"description": "Live Change Framework - ultimate solution for real time mobile/web apps",

@@ -5,0 +5,0 @@ "main": "index.js",

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