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

knexed

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

knexed - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

flow-typed/local/Knex.js.flow

2

license.txt

@@ -1,2 +0,2 @@

Copyright © 2016 Strider.
Copyright © 2016 — 2017 Strider.
https://github.com/StreetStrider

@@ -3,0 +3,0 @@

{
"name": "knexed",
"version": "1.1.0",
"version": "1.2.0",

@@ -48,3 +48,3 @@ "description": "Knex utilities",

"knex":
"0.12",
"0.13",

@@ -70,3 +70,3 @@ "mocha":

"flow-bin":
"0.38",
"0.49",

@@ -77,4 +77,4 @@ "eslint":

"js-outlander":
"StrangeTransistor/js-outlander#2.1.0"
"StrangeTransistor/js-outlander#2.1.1"
}
}
/* @flow */
module.exports = function count (query /* :Query */)
module.exports = function count (query /* :Knex$Query */)
/* :Promise<number> */

@@ -5,0 +5,0 @@ {

/* @flow */
module.exports = function exists (query /* :Query */)
module.exports = function exists (query /* :Knex$Query */)
/* :Promise<boolean> */

@@ -5,0 +5,0 @@ {

@@ -56,3 +56,3 @@ /* @flow */

return (tx /* :TransactionOptional */) =>
return (tx /* :Knex$Transaction$Optional */) =>
{

@@ -78,3 +78,3 @@ return tableL

return (tx /* :TransactionOptional */) =>
return (tx /* :Knex$Transaction$Optional */) =>
{

@@ -81,0 +81,0 @@ return tableL

/* @flow */
/* ::
export type TableFn = (tx :TransactionOptional) => Query;
export type TableFn = (tx :Knex$Transaction$Optional) => Knex$Query;

@@ -9,6 +9,8 @@ export type Table

{
as: (alias :?string, tx :TransactionOptional) => Query,
as: (alias :?string, tx :Knex$Transaction$Optional) => Knex$Query,
relname: (alias :?string) => string,
+toString: () => string
+toString: () => string,
kx: Knex,
};

@@ -20,3 +22,3 @@ */

{
var t = (tx /* :TransactionOptional */) =>
var t = (tx /* :Knex$Transaction$Optional */) =>
{

@@ -26,3 +28,5 @@ return transacted(kx, table_name, tx)

t.as = (alias /* :?string */, tx /* :TransactionOptional */) =>
t.kx = kx
t.as = (alias /* :?string */, tx /* :Knex$Transaction$Optional */) =>
{

@@ -58,5 +62,5 @@ return transacted(kx, relname(alias), tx)

table_name /* :string */,
tx /* :TransactionOptional */
tx /* :Knex$Transaction$Optional */
)
/* :Query */
/* :Knex$Query */
{

@@ -63,0 +67,0 @@ return kx(table_name)

/* @flow */
/* ::
type RetPromise<T> = ( ...args: Array<any>) => Promise<T>;
type TxRetPromise<T> = (tx: Transaction, ...args: Array<any>) => Promise<T>;
type RetPromise<T>
= ( ...args: Array<any>) => Promise<T>
type TxRetPromise<T>
= (tx: Knex$Transaction, ...args: Array<any>) => Promise<T>
*/

@@ -22,3 +25,3 @@

(
tx /* :TransactionOptional */
tx /* :Knex$Transaction$Optional */
/* ::, ...args: Array<any> */

@@ -25,0 +28,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