New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@app-masters/sync-cache

Package Overview
Dependencies
Maintainers
5
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@app-masters/sync-cache - npm Package Compare versions

Comparing version 0.3.10 to 0.3.11

4

CHANGELOG.md

@@ -9,2 +9,6 @@ # Changelog

## [0.3.11] - 2018-10-25
### Changed
- Changed populate and replace methods
## [0.3.10] - 2018-10-24

@@ -11,0 +15,0 @@ ### Added

@@ -531,2 +531,7 @@ "use strict";

async populateObject(object) {
// Don't populate empty objects
if (Object.keys(object).length < 1) {
return object;
}
const {

@@ -548,2 +553,7 @@ foreignField,

const cacheName = foreignItem.table.toUpperCase();
if (!object[foreignKey]) {
continue;
}
populatedObject[foreignItem.table] = await _amSyncCache.default.getObject(cacheName, {

@@ -564,2 +574,7 @@ [primaryKey]: object[foreignKey]

const cacheName = relation.table.toUpperCase();
if (!object[primaryKey]) {
continue;
}
populatedObject[relation.table] = await _amSyncCache.default.getObjects(cacheName, {

@@ -747,3 +762,3 @@ [foreignKey]: object[primaryKey]

await _amSyncCache.default.deleteObject(typePrefix, cacheObject);
await this.setObjectDeleted(cacheObject);
await _amSyncCache.default.createObject(typePrefix, onlineObject); // Replace the primaryKey on all relations by the online primaryKey

@@ -750,0 +765,0 @@

2

package.json
{
"name": "@app-masters/sync-cache",
"version": "0.3.10",
"version": "0.3.11",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "scripts": {

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