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

@begin/data

Package Overview
Dependencies
Maintainers
3
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@begin/data - npm Package Compare versions

Comparing version 1.1.4 to 1.1.5-RC.0

.github/workflows/build.yml

5

package.json
{
"name": "@begin/data",
"version": "1.1.4",
"version": "1.1.5-RC.0",
"description": "Begin Data is a durable and fast key/value document store built on top of DynamoDB.",

@@ -8,3 +8,4 @@ "main": "src/index.js",

"lint": "eslint src --ignore-pattern node_modules --fix",
"test": "npm run lint && tape test/test.js | tap-spec"
"test": "npm run lint && tape test/test.js | tap-spec",
"rc": "npm version prerelease --preid RC"
},

@@ -11,0 +12,0 @@ "license": "Apache-2.0",

24

readme.md
# Begin Data
## [`@begin/data`](https://www.npmjs.com/package/@begin/data)
[ ![Codeship Status for smallwins/begin-data](https://app.codeship.com/projects/54207a80-9b6b-0136-cc78-3a6df96c6020/status?branch=master)](https://app.codeship.com/projects/305743)
[![GitHub CI status](https://github.com/smallwins/begin-data/workflows/Node%20CI/badge.svg)](https://github.com/smallwins/begin-data/actions?query=workflow%3A%22Node+CI%22)

@@ -41,10 +41,10 @@ Begin Data is an easy to use, fast, and durable key/value and document store built on top of DynamoDB. Originally built for [Begin serverless apps](https://begin.com), Begin Data’s core API has three simple methods: `get`, `set`, and `destroy`.

BillingMode: "PAY_PER_REQUEST"
KeySchema:
-
KeySchema:
-
AttributeName: "scopeID"
KeyType: "HASH"
-
-
AttributeName: "dataID"
KeyType: "RANGE"
SSESpecification:
SSESpecification:
Enabled: "false"

@@ -57,3 +57,3 @@ TimeToLiveSpecification:

> Note: projects not based on [Architect](https://arc.codes) will need a `BEGIN_DATA_TABLE_NAME` environment variable. You can also use this env var to override and name the table anything you want. This also allows for multiple apps to share a single table.
### API

@@ -68,3 +68,3 @@

- `data.get(params[, callback])` → `[Promise]` for retreiving data
- `data.set(params[, callback])` → `[Promise]` for writing data
- `data.set(params[, callback])` → `[Promise]` for writing data
- `data.destroy(params[, callback])` → `[Promise]` for removing data

@@ -86,3 +86,3 @@

let taco = await data.set({
table: 'tacos',
table: 'tacos',
key: 'al-pastor'

@@ -92,7 +92,7 @@ })

All documents have a `key`. If no `key` is given, `set` will generate a unique `key`.
All documents have a `key`. If no `key` is given, `set` will generate a unique `key`.
```javascript
let token = await data.set({
table: 'tokens',
table: 'tokens',
})

@@ -119,3 +119,3 @@ // {table:'tokens', key:'LCJkYX9jYWwidW50RhSU'}

let yum = await data.get({
table: 'tacos',
table: 'tacos',
key: 'baja'

@@ -140,3 +140,3 @@ })

await data.destroy({
table: 'tacos',
table: 'tacos',
key: 'pollo'

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