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

fortune

Package Overview
Dependencies
Maintainers
2
Versions
297
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fortune - npm Package Compare versions

Comparing version 5.4.0 to 5.4.1

5

lib/common/constants.js

@@ -14,6 +14,3 @@ 'use strict'

// Used to map update objects to a hash of linked records.
'linkedHash',
// Used to include find records in `meta` for update and delete requests.
'findRecords'
'linkedHash'
]

@@ -20,0 +17,0 @@

1

lib/common/keys.js

@@ -11,2 +11,1 @@ 'use strict'

exports.denormalizedInverse = constants.denormalizedInverse
exports.findRecords = constants.findRecords

@@ -23,3 +23,2 @@ 'use strict'

var isArrayKey = constants.isArray
var findRecordsKey = constants.findRecords

@@ -70,6 +69,2 @@

Object.defineProperty(meta, findRecordsKey, {
value: records
})
return typeof hook[0] === 'function' ?

@@ -76,0 +71,0 @@ Promise.all(map(records, function (record) {

@@ -37,3 +37,2 @@ 'use strict'

var linkedHashKey = constants.linkedHash
var findRecordsKey = constants.findRecords

@@ -99,6 +98,2 @@

Object.defineProperty(meta, findRecordsKey, {
value: records
})
return Promise.all(map(records, function (record) {

@@ -105,0 +100,0 @@ var update, cloneUpdate

@@ -346,6 +346,4 @@ 'use strict'

*
* - `meta`: Meta-information object of the request. For `update` and `delete`
* requests, this will contain `findRecords` with results of `find` called
* during validation of record existence. Optional.
*
* - `meta`: Meta-information object of the request. Optional.
*
* - `payload`: Payload of the request. **Required** for `create` and `update`

@@ -352,0 +350,0 @@ * methods only, and must be an array of objects. The objects must be the

{
"name": "fortune",
"description": "Database abstraction layer that implements common features for Node.js and web browsers.",
"version": "5.4.0",
"version": "5.4.1",
"license": "MIT",

@@ -34,7 +34,7 @@ "homepage": "http://fortune.js.org",

"browserify": "^14.4.0",
"caniuse-db": "^1.0.30000708",
"chalk": "^2.0.1",
"caniuse-db": "^1.0.30000748",
"chalk": "^2.2.0",
"cssnano": "^3.10.0",
"doc-tree": "^0.12.2",
"eslint": "^4.3.0",
"eslint": "^4.9.0",
"eslint-config-boss": "^1.0.6",

@@ -44,3 +44,3 @@ "fortune-http": "^1.1.0",

"highlight.js": "^9.12.0",
"html-minifier": "^3.5.3",
"html-minifier": "^3.5.6",
"inflection": "^1.12.0",

@@ -58,3 +58,3 @@ "istanbul": "^0.4.5",

"tape-run": "^3.0.0",
"uglify-js": "^3.0.27"
"uglify-js": "^3.1.4"
},

@@ -61,0 +61,0 @@ "files": [

@@ -27,12 +27,2 @@ 'use strict'

const originalDelete = store.adapter.delete
store.adapter.delete = function (type, ids, meta) {
assert(
Array.isArray(meta[constants.findRecords]),
'found records are passed')
return originalDelete.apply(this, arguments)
}
store.on(changeEvent, data => {

@@ -39,0 +29,0 @@ assert(find(data[deleteMethod].user, id => id === 3),

@@ -53,25 +53,2 @@ 'use strict'

run((assert, comment) => {
comment('update should receive found records')
return updateTest({
type: 'user',
payload: {
[primaryKey]: 2,
replace: { name: 'Q' }
},
patch: store => {
const update = store.adapter.update
store.adapter.update = function (type, updates, meta) {
assert(
Array.isArray(meta[constants.findRecords]),
'found records are passed')
return update.apply(this, arguments)
}
}
})
})
run((assert, comment) => {
comment('update one to one with 2nd degree unset')

@@ -665,5 +642,2 @@ return updateTest({

if (o.patch)
o.patch(store)
if (o.change)

@@ -670,0 +644,0 @@ store.on(changeEvent, data => o.change(data))

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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