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

@northernv/supermodel

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@northernv/supermodel - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

LICENSE

14

__tests__/index.js

@@ -177,1 +177,15 @@ const k = require('knex')

})
describe('count', () => {
it('should fail when no knex object given', () => {
expect(() => Fake.count({ name: 'none' })).toThrow()
})
it('should return a single value integer', async () => {
tracker.on('query', (query) => {
query.response([ { count: 123 } ])
})
const res = await Fake.count({ n: 1 }, { db })
expect(res).toEqual(123)
})
})

2

index.js

@@ -261,3 +261,3 @@ const assert = require('assert')

.select()
.count('id')
.count('*')
.where(where)

@@ -264,0 +264,0 @@

{
"name": "@northernv/supermodel",
"version": "1.0.2",
"version": "1.0.3",
"description": "A Base model for Knex",

@@ -5,0 +5,0 @@ "main": "index.js",

## @northernv/supermodel
[![npm](https://img.shields.io/npm/v/@northernv/supermodel.svg?maxAge=2592000)](https://www.npmjs.com/package/@northernv/supermodel)
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/mathewdgardner/knex-supermodel/master/LICENSE)
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://gitlab.com/shanestillwell/supermodel/raw/master/LICENSE)

@@ -6,0 +6,0 @@ Completely inspired by [knex-supermodel](https://www.npmjs.com/package/knex-supermodel), just altered with some personal modifications to meet my needs

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