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

aa

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aa - npm Package Compare versions

Comparing version 0.1.30 to 0.1.31

4

package.json
{
"name": "aa",
"version": "0.1.30",
"version": "0.1.31",
"description": "aa - async-await. co like library, go like channel, thunkify or promisify wrap package.",
"main": "aa.js",
"dependencies": {
"promise-thunk": ">=0.1.10"
"promise-thunk": ">=0.1.11"
},

@@ -9,0 +9,0 @@ "devDependencies": {

@@ -114,5 +114,5 @@ [aa](https://www.npmjs.com/package/aa) - [async-await](https://www.npmjs.com/package/async-await)

+ `method`: method name string.
+ `options`: method name postfix or suffix. default: 'Async'. or options object.
+ `postfix`: method name postfix or suffix. default: 'Async'.
+ `suffix`: method name postfix or suffix. default: 'Async'.
+ `options`: method name suffix or postfix. default: 'Async'. or options object.
+ `suffix`: method name suffix or postfix. default: 'Async'.
+ `postfix`: method name suffix or postfix. default: 'Async'.

@@ -123,3 +123,3 @@ #### postgres `pg` example:

var pg = require('pg');
aa.promisify(pg, 'connect', {postfix: 'A'}; // -> yield pg.connectA()
aa.promisify(pg, 'connect', {suffix: 'A'}; // -> yield pg.connectA()
aa.promisify(pg.Client.prototype, 'connect'); // -> yield client.connectAsync()

@@ -134,5 +134,5 @@ aa.promisify(pg.Client.prototype, 'query'); // -> yield client.queryAsync()

+ `object`: target object.
+ `options`: method name postfix or suffix. default: 'Async'. or options object.
+ `postfix`: method name postfix or suffix. default: 'Async'.
+ `suffix`: method name postfix or suffix. default: 'Async'.
+ `options`: method name suffix or postfix. default: 'Async'. or options object.
+ `suffix`: method name suffix or postfix. default: 'Async'.
+ `postfix`: method name suffix or postfix. default: 'Async'.

@@ -143,3 +143,3 @@ #### file system `fs` example:

var fs = require('fs');
aa.promisifyAll(fs, {postfix: 'A'}); // -> yield fs.readFileA()
aa.promisifyAll(fs, {suffix: 'A'}); // -> yield fs.readFileA()
```

@@ -151,3 +151,3 @@

var pg = require('pg');
aa.promisifyAll(pg.constructor.prototype, {postfix: 'A'}); // -> yield pg.connectA()
aa.promisifyAll(pg.constructor.prototype, {suffix: 'A'}); // -> yield pg.connectA()
aa.promisifyAll(pg.Client.prototype); // -> yield client.connectAsync()

@@ -183,5 +183,5 @@ // -> yield client.queryAsync()

+ `method`: method name string.
+ `options`: method name postfix or suffix. default: 'Async'. or options object.
+ `postfix`: method name postfix or suffix. default: 'Async'.
+ `suffix`: method name postfix or suffix. default: 'Async'.
+ `options`: method name suffix or postfix. default: 'Async'. or options object.
+ `suffix`: method name suffix or postfix. default: 'Async'.
+ `postfix`: method name suffix or postfix. default: 'Async'.

@@ -192,3 +192,3 @@ #### postgres `pg` example:

var pg = require('pg');
aa.thunkify(pg, 'connect', {postfix: 'A'}); // -> yield pg.connectA()
aa.thunkify(pg, 'connect', {suffix: 'A'}); // -> yield pg.connectA()
aa.thunkify(pg.Client.prototype, 'connect'); // -> yield client.connectAsync()

@@ -203,5 +203,5 @@ aa.thunkify(pg.Client.prototype, 'query'); // -> yield client.queryAsync()

+ `object`: target object.
+ `options`: method name postfix or suffix. default: 'Async'. or options object.
+ `postfix`: method name postfix or suffix. default: 'Async'.
+ `suffix`: method name postfix or suffix. default: 'Async'.
+ `options`: method name suffix or postfix. default: 'Async'. or options object.
+ `suffix`: method name suffix or postfix. default: 'Async'.
+ `postfix`: method name suffix or postfix. default: 'Async'.

@@ -212,3 +212,3 @@ #### file system `fs` example:

var fs = require('fs');
aa.thunkifyAll(fs, {postfix: 'A'}); // -> yield fs.readFileA()
aa.thunkifyAll(fs, {suffix: 'A'}); // -> yield fs.readFileA()
```

@@ -220,3 +220,3 @@

var pg = require('pg');
aa.thunkifyAll(pg.constructor.prototype, {postfix: 'A'}); // -> yield pg.connectA()
aa.thunkifyAll(pg.constructor.prototype, {suffix: 'A'}); // -> yield pg.connectA()
aa.thunkifyAll(pg.Client.prototype); // -> yield client.connectAsync()

@@ -223,0 +223,0 @@ // -> yield client.queryAsync()

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