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

mvom

Package Overview
Dependencies
Maintainers
3
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mvom - npm Package Compare versions

Comparing version 0.5.2 to 0.6.0

unibasic/setup.mvb

6

.mvomrc.json

@@ -5,3 +5,3 @@ {

"deploy": "^0.1.0",
"entry": "^0.1.0",
"entry": "^0.2.0",
"find": "^0.2.1",

@@ -11,4 +11,6 @@ "findById": "^0.1.0",

"getServerInfo": "^0.1.0",
"save": "^0.1.1"
"save": "^0.1.2",
"setup": "^0.1.0",
"teardown": "^0.1.0"
}
}
# CHANGELOG.md
## 0.6.0
###### _2020_03_03_
- Add new setup and teardown features which will run before and after a subroutine feature to setup and teardown the environment. While configurable, the initial implementation creates and clears a named common block called `S$MVOM`, which includes one variable called `S$MVOM.PROCESS` set to `true`. UniBasic programs can check for this variable to determine if they were initiated by `MVIS`. This may be necessary when code not shipped through MVOM is run like in a database trigger or virtual dictionary. @kthompson23
UniBasic programs should include the below to use this new variable:
```UniBasic
COM /S$MVOM/ S$MVOM.PROCESS
```
- Enhance the save action to support clearing all attributes before writing out the record. This fixes an issue with schema less documents where the record being written has less attributes than what is already on disk. This is automatically set when working with schema less files. @reedmattos
## 0.5.2

@@ -3,0 +15,0 @@ ###### _2020_02_25_

@@ -186,3 +186,5 @@ "use strict";

__v: this.__v,
record: this.transformDocumentToRecord()
record: this.transformDocumentToRecord(),
clearAttributes: Model.schema === null // clears all attributes before writing new record
});

@@ -189,0 +191,0 @@ return Model.makeModelFromDbResult(data.result);

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

* @param {string} feature - Feature name
* @returns {string} UniBasic source code
* @returns {Promise.<String>} UniBasic source code
*/

@@ -205,3 +205,3 @@

_defineProperty(this, "executeDbFeature", async (feature, options = {}) => {
_defineProperty(this, "executeDbFeature", async (feature, options = {}, setupOptions = {}, teardownOptions = {}) => {
this.logger.debug(`executing database feature "${feature}"`);

@@ -212,3 +212,7 @@ const data = {

subroutineId: Connection.getServerProgramName(feature, this._serverFeatureSet.validFeatures[feature]),
options
setupId: Connection.getServerProgramName('setup', this._serverFeatureSet.validFeatures.setupId),
teardownId: Connection.getServerProgramName('teardown', this._serverFeatureSet.validFeatures.teardownId),
options,
setupOptions,
teardownOptions
};

@@ -215,0 +219,0 @@ this.logger.debug(`executing database subroutine ${data.subroutineId}`);

{
"name": "mvom",
"author": "STORIS",
"version": "0.5.2",
"version": "0.6.0",
"description": "Multivalue Object Mapper",

@@ -6,0 +6,0 @@ "main": "./js/index.js",

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