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

@eclipse-emfcloud/coffee-triggers-example

Package Overview
Dependencies
Maintainers
8
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eclipse-emfcloud/coffee-triggers-example - npm Package Compare versions

Comparing version 0.2.0-next.46e550b.20 to 0.2.0-next.4e5d48f.45

4

lib/example-trigger.js

@@ -66,3 +66,3 @@ "use strict";

// new changes from those, so that's how we do it here
const model = await this.modelServerClient.get(modelURI);
const model = await this.modelServerClient.get(modelURI.toString());
const result = [];

@@ -76,3 +76,3 @@ // Take only the last change to any given duration in case of multiple (such as

this.logger.debug('Rounding up duration %d of object at %s', op.value, op.path);
result.push((0, modelserver_client_1.replace)(modelURI, element, 'duration', roundUp(op.value, 10)));
result.push((0, modelserver_client_1.replace)(modelURI.toString(), element, 'duration', roundUp(op.value, 10)));
}

@@ -79,0 +79,0 @@ });

{
"name": "@eclipse-emfcloud/coffee-triggers-example",
"version": "0.2.0-next.46e550b.20+46e550b",
"version": "0.2.0-next.4e5d48f.45+4e5d48f",
"description": "Example server-side triggers plug-in for the Model Server.",

@@ -27,3 +27,3 @@ "license": "(EPL-2.0 OR MIT)",

"dependencies": {
"@eclipse-emfcloud/modelserver-plugin-ext": "0.2.0-next.46e550b.20+46e550b",
"@eclipse-emfcloud/modelserver-plugin-ext": "0.2.0-next.4e5d48f.45+4e5d48f",
"inversify": "^5.1.1"

@@ -49,3 +49,3 @@ },

},
"gitHead": "46e550b857dd3546d19725118e16f119fcd7ef7c"
"gitHead": "4e5d48f6b599d7e1c672f9c5b58119b1578bc74b"
}

@@ -69,3 +69,3 @@ # Trigger Example

```plain
http://localhost:8082/api/v2/models?modeluri=SuperBrewer3000.coffee
http://localhost:8082/api/v2/models?modeluri=SuperBrewer3000.coffee&format=json-v2
```

@@ -90,2 +90,7 @@

You also need to set the following two headers for the request to work:
- Content-Length = \<calculated when request is sent>
- Content-Type = application/json
Observe in the response that there is a final change to the `duration` that rounds it up to the next multiple of ten.

@@ -92,0 +97,0 @@ A typical response looks something like this:

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