Comparing version 3.0.3 to 5.0.0
{ | ||
"name": "percy", | ||
"version": "3.0.3", | ||
"description": "A persistance layer that plays nice with Couchbase", | ||
"main": "percy.js", | ||
"scripts": { | ||
"test": "node ./tests" | ||
}, | ||
"author": "Maurice Butler <maurice.butler@gmail.com>", | ||
"version": "5.0.0", | ||
"license": "MIT", | ||
"dependencies": { | ||
"kgo": "^1.3.0", | ||
"map": "0.0.3" | ||
}, | ||
"devDependencies": { | ||
"tape": "^3.4.0" | ||
}, | ||
"directories": { | ||
"test": "tests" | ||
}, | ||
"bin": "index.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/yoik/percy.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/yoik/percy/issues" | ||
}, | ||
"homepage": "https://github.com/yoik/percy", | ||
"keywords": [ | ||
"couchbase", | ||
"persistance", | ||
"layer", | ||
"validate", | ||
"validator", | ||
"couch", | ||
"base" | ||
] | ||
"url": "https://github.com/percy/cli" | ||
} | ||
} |
@@ -1,34 +0,16 @@ | ||
# percy | ||
## percy | ||
A persistance layer that plays nice with couchbase@^2.0.0 | ||
Looking for [`@percy/cli`](https://github.com/percy/cli)? | ||
## Usage | ||
var Percy = require('percy'), | ||
bucket, // bucket object from Couchbase | ||
validator, // object that has a validate function with a signature of function(model, callback) | ||
myCoolIdGenerator; // returns a unique id for this entity | ||
This package is installed when somebody uses a package manager's exec command to | ||
run `percy` without first installing `@percy/cli`. When run, it prints a message | ||
to stderr informing the user that `@percy/cli` is not installed and then exits. | ||
var persistance = new Percy('user', connection, validator); | ||
To avoid accidentally installing this package when using a package manager's | ||
exec command, most package managers accept the package's name: | ||
// createId must be set so Percy knows how to generate unique ids | ||
persistance.createId = function(callback){ | ||
callback(null, myCoolIdGenerator()); | ||
}; | ||
persistance.add({ userName: 'bob' }, function(error, user){ | ||
if(error){ | ||
console.log(error); | ||
return; | ||
} | ||
console.log(user); // { id: 'myCoolId', userName: 'bob'} | ||
}); | ||
// Results in the following db record | ||
KEY VALUE | ||
user:myCoolId { | ||
id: 'myCoolId' | ||
userName: 'bob' | ||
} | ||
``` session | ||
$ npx @percy/cli --help | ||
$ yarn dlx @percy/cli --help | ||
$ pnpm dlx @percy/cli --help | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
0
0
0
1211
3
11
2
1
17
1
- Removedkgo@^1.3.0
- Removedmap@0.0.3
- Removedkgo@1.3.0(transitive)
- Removedmap@0.0.3(transitive)