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

@live-change/relations-plugin

Package Overview
Dependencies
Maintainers
0
Versions
240
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@live-change/relations-plugin - npm Package Compare versions

Comparing version 0.9.0 to 0.9.1

2

changeTriggers.js

@@ -71,3 +71,3 @@ import { extractObjectData, extractIdentifiers } from "./dataUtils.js"

if (found) {
const eventName = propertyName + reverseRelationWord + modelName + 'DeleteByOwner'
const eventName = modelName + 'DeleteByOwner'
emit({

@@ -74,0 +74,0 @@ type: eventName,

@@ -35,3 +35,3 @@ import {

} = context
const eventName = joinedOthersPropertyName + reverseRelationWord + modelName + 'Updated'
const eventName = modelName + 'Updated'
service.events[eventName] = new EventDefinition({

@@ -62,3 +62,3 @@ name: eventName,

} = context
const eventName = joinedOthersPropertyName + reverseRelationWord + modelName + 'Transferred'
const eventName = modelName + 'Transferred'
service.events[eventName] = new EventDefinition({

@@ -86,3 +86,3 @@ name: eventName,

} = context
const eventName = joinedOthersPropertyName + reverseRelationWord + modelName + 'Deleted'
const eventName = modelName + 'Deleted'
service.events[eventName] = new EventDefinition({

@@ -107,3 +107,3 @@ name: eventName,

} = context
const eventName = joinedOthersPropertyName + reverseRelationWord + modelName + 'Copied'
const eventName = modelName + 'Copied'
service.events[eventName] = new EventDefinition({

@@ -110,0 +110,0 @@ name: eventName,

{
"name": "@live-change/relations-plugin",
"version": "0.9.0",
"version": "0.9.1",
"description": "",

@@ -25,6 +25,6 @@ "main": "index.js",

"dependencies": {
"@live-change/framework": "^0.9.0",
"@live-change/framework": "^0.9.1",
"pluralize": "^8.0.0"
},
"gitHead": "b82513f5b400afcc4b8cc3ae1f9dfe4ac3a2a6eb"
"gitHead": "d00e08ee081d6993421e4573fc25588345aaabca"
}

@@ -167,3 +167,3 @@ import App from "@live-change/framework"

for(const propertyName of otherPropertyNames) {
const eventName = propertyName + reverseRelationWord + modelName + 'DeleteByOwner'
const eventName = modelName + 'DeleteByOwner'
service.events[eventName] = new EventDefinition({

@@ -170,0 +170,0 @@ name: eventName,

@@ -8,4 +8,4 @@ import App from "@live-change/framework"

import { fireChangeTriggers, registerParentDeleteTriggers } from "./changeTriggers.js"
import { extractObjectData } from "./dataUtils.js"
function extractTypeAndIdParts(otherPropertyNames, properties) {

@@ -167,3 +167,3 @@ const typeAndIdParts = []

function defineDeleteByOwnerEvents(config, context, generateId) {
function defineDeleteByOwnerEvents(config, context) {
const {

@@ -173,3 +173,3 @@ service, modelRuntime, joinedOthersPropertyName, modelName, modelPropertyName, otherPropertyNames, reverseRelationWord

for(const propertyName of otherPropertyNames) {
const eventName = propertyName + reverseRelationWord + modelName + 'DeleteByOwner'
const eventName = modelName + 'DeleteByOwner'
service.events[eventName] = new EventDefinition({

@@ -202,3 +202,3 @@ name: eventName,

await Promise.all(deletePromises)
} while (bucket.length == bucketSize)
} while (bucket.length === bucketSize)
}

@@ -205,0 +205,0 @@ })

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