Huge News!Announcing our $40M Series B led by Abstract Ventures.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.5.0 to 2.0.0

.nyc_output/269a348a-6a1e-4380-9cbc-ccbd1d94b589.json

16

flow-typed/npm/bluebird_v3.x.x.js

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

// flow-typed signature: ce9b944ed3262e5ed19a132343a842df
// flow-typed version: 1cb1933212/bluebird_v3.x.x/flow_>=v0.70.x
// flow-typed signature: e0974d6c2c04803a78c4faa3e848c72a
// flow-typed version: 34fbdaa6f3/bluebird_v3.x.x/flow_>=v0.70.x

@@ -70,7 +70,13 @@ type Bluebird$RangeError = Error;

declare class Bluebird$Promise<+R> extends Promise<R> {
static RangeError: Class<Bluebird$RangeError>;
static CancellationErrors: Class<Bluebird$CancellationErrors>;
static TimeoutError: Class<Bluebird$TimeoutError>;
static RejectionError: Class<Bluebird$RejectionError>;
static OperationalError: Class<Bluebird$OperationalError>;
static Defer: Class<Bluebird$Defer>;
static PromiseInspection: Class<Bluebird$PromiseInspection<*>>;
static all<T, Elem: $Promisable<T>>(
Promises: Iterable<Elem> | $Promisable<Iterable<Elem>>
static all<T>(
Promises: $Promisable<Iterable<$Promisable<T>>>
): Bluebird$Promise<Array<T>>;

@@ -322,3 +328,3 @@ static props(

): Bluebird$Promise<A>;
suppressUnhandledRejections(): void;

@@ -325,0 +331,0 @@ }

@@ -6,3 +6,3 @@ // flow-typed signature: 9ce19a0904ee052b819135ea95efe8bc

mixins Knex$QueryBuilder<R>, events$EventEmitter, Bluebird$Promise<R>, Promise<R> {
$call: (tableName: string) => Knex$QueryBuilder<R>;
[[call]]: (tableName: string) => Knex$QueryBuilder<R>;
commit(connection?: any, value?: any): Promise<R>;

@@ -159,3 +159,3 @@ rollback(?Error): Promise<R>;

static QueryBuilder: typeof Knex$QueryBuilder;
$call: (tableName: string) => Knex$QueryBuilder<R>;
[[call]]: (tableName: string) => Knex$QueryBuilder<R>;
raw(sqlString: string, bindings?: Knex$RawBindings): any;

@@ -162,0 +162,0 @@ batchInsert: (tableName: string, rows: Array<Object>, chunkSize?: number) => Knex$QueryBuilder<R>;

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

Copyright © 2018 Strider.
Copyright © 2019 Strider.
https://github.com/StreetStrider

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

{
"name": "knexed",
"version": "1.5.0",
"version": "2.0.0",

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

{
"node": ">= 5"
"node": ">= 10"
},

@@ -35,6 +35,6 @@

"st": "eslint *.js tx/ table/ query/ test/",
"t": "glow || flow",
"t": "flow check",
"unit": "mocha --check-leaks --recursive test/**.test.js test/**/*.test.js",
"cover": "istanbul cover _mocha -- --check-leaks --recursive test/**.test.js test/**/*.test.js",
"unit": "mocha --check-leaks --recursive test/**.test.js test/**/*.test.js",
"cover": "nyc --reporter=lcov --reporter=text-summary npm run unit",

@@ -44,3 +44,3 @@ "test": "npm run st && npm run t && npm run unit",

"coveralls": "istanbul-coveralls"
"coveralls": "cat coverage/lcov.info | coveralls"
},

@@ -60,3 +60,3 @@

"knex":
"0.14",
"0.16",

@@ -73,19 +73,19 @@ "mocha":

"lodash":
"4",
"^4.17.11",
"istanbul":
"0.4",
"istanbul-coveralls":
"1",
"flow-bin":
"0.74",
"0.98",
"eslint":
"4",
"5",
"js-outlander":
"StrangeTransistor/js-outlander#2.3.1"
"StrangeTransistor/js-outlander#2.5.0",
"nyc":
"14",
"coveralls":
"3"
}
}
}

@@ -24,3 +24,3 @@ # knexed

### dataset helpers
### dataset helpers (`./`)
```js

@@ -53,2 +53,5 @@ knex('table').select()

### transaction helpers (`tx/method`)
`method` helper allows function to both be initial point in transaction, or consecutive.
If no transaction is passed as first argument, transaction well be initialized automatically.
If transaction is passed, method will accept it.
```js

@@ -65,2 +68,7 @@ /* create method */

create(method.NOTX, 'Name') /* if you don't need transaction at all */
/* method can also be curried */
var m = method(knex)
var create = m((trx, name) => { … })
```

@@ -138,3 +146,3 @@

.insert({ id: 1, name: 'account' })
.catch(...catch_constraint({ constraint: 'accounts_pkey' }, AlreadyExists))
.catch(...catch_constraint('accounts_pkey', AlreadyExists))
```

@@ -154,3 +162,3 @@

.insert({ id, name: 'account' })
.catch(...catch_constraint({ constraint: 'accounts_pkey' }, { id }, AlreadyExists))
.catch(...catch_constraint('accounts_pkey', { id }, AlreadyExists))
```

@@ -184,2 +192,2 @@

MIT.
© Strider, 2016 — 2018.
© Strider, 2016 — 2019.

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

return method(kx, (tx, key /* :Key */, data /* :Data */) =>
return method/* ::<Data> */(kx, (tx, key /* :Key */, data /* :Data */) =>
{

@@ -35,0 +35,0 @@ var data_compose = assign($options.key(key), data)

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