Socket
Socket
Sign inDemoInstall

immutable-model-view-key-by

Package Overview
Dependencies
165
Maintainers
1
Versions
185
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.187 to 0.3.0

17

package.json
{
"author": "Ersun Warncke <ersun.warncke@gmail.com>",
"dependencies": {
"immutable-core-model-view": "0.4.53"
"immutable-core-model-view": "0.5.2"
},
"description": "Immutable Model View to collect records into object keyed by property value",
"devDependencies": {
"chai": "4.1.2",
"chai": "4.2.0",
"chai-as-promised": "7.1.1",
"immutable-access-control": "^0.5.15",
"immutable-core": "2.2.38",
"immutable-core-model": "3.6.2",
"immutable-database-mariasql": "1.3.47",
"mocha": "4.1.0"
"immutable-access-control": "0.5.18",
"immutable-core": "2.3.3",
"immutable-core-model": "4.0.3",
"mocha": "5.2.0"
},

@@ -29,3 +28,3 @@ "directories": {

},
"version": "0.2.187"
}
"version": "0.3.0"
}

@@ -5,3 +5,2 @@ 'use strict'

const ImmutableCoreModel = require('immutable-core-model')
const ImmutableDatabaseMariaSQL = require('immutable-database-mariasql')
const ModelViewKeyBy = require('../lib/immutable-model-view-key-by')

@@ -23,4 +22,3 @@ const Promise = require('bluebird')

const connectionParams = {
charset: 'utf8',
db: dbName,
database: dbName,
host: dbHost,

@@ -33,5 +31,2 @@ password: dbPass,

// create database connection to use for testing
var database = new ImmutableDatabaseMariaSQL(connectionParams)
// fake session to use for testing

@@ -46,3 +41,3 @@ var session = {

var origBam, origBar, origFoo, origRecords
var mysql, origBam, origBar, origFoo, origRecords

@@ -53,5 +48,7 @@ before(async function () {

ImmutableAccessControl.reset()
// create database client
mysql = await ImmutableCoreModel.createMysqlConnection(connectionParams)
// create initial model
glboalFooModel = new ImmutableCoreModel({
database: database,
mysql: mysql,
name: 'foo',

@@ -65,3 +62,3 @@ views: {

// drop any test tables if they exist
await database.query('DROP TABLE IF EXISTS foo')
await mysql.query('DROP TABLE IF EXISTS foo')
// sync with database

@@ -68,0 +65,0 @@ await glboalFooModel.sync()

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc