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

model-attributes

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

model-attributes - npm Package Compare versions

Comparing version 3.0.8 to 3.0.9

13

package.json
{
"name": "model-attributes",
"version": "3.0.8",
"version": "3.0.9",
"description": "attribute meta description",

@@ -38,4 +38,4 @@ "keywords": [

"mocha": "^3.2.0",
"nyc": "^10.1.2",
"rollup": "^0.41.5",
"nyc": "^10.2.0",
"rollup": "^0.41.6",
"semantic-release": "^6.3.6"

@@ -58,3 +58,3 @@ },

"engines": {
"node": ">=7.7.2"
"node": ">=7.9.0"
},

@@ -74,3 +74,8 @@ "config": {

"report-dir": "./coverage"
},
"template": {
"repository": {
"url": "https://github.com/Kronos-Tools/npm-package-template.git"
}
}
}
[![npm](https://img.shields.io/npm/v/model-attributes.svg)](https://www.npmjs.com/package/model-attributes)
[![Greenkeeper](https://badges.greenkeeper.io/arlac77/model-attributes)](https://greenkeeper.io/)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/arlac77/model-attributes)

@@ -44,15 +45,14 @@ [![Build Status](https://secure.travis-ci.org/arlac77/model-attributes.png)](http://travis-ci.org/arlac77/model-attributes)

## model-attributes.setAttributes(dest, atts, src, cb, prefix) ⇒
## model-attributes.setAttributes(dest, atts, src, cb, prefix) ⇒ <code>undefined</code>
Copies attribute values from a source object into a destination object.
**Kind**: static method of <code>[model-attributes](#module_model-attributes)</code>
**Returns**: void
| Param | Type | Description |
| --- | --- | --- |
| dest | <code>Object</code> | target object to be modified |
| atts | <code>Object</code> | attribute definitions to be used |
| src | <code>Object</code> | origin of the data to be copied |
| dest | <code>object</code> | target object to be modified |
| atts | <code>object</code> | attribute definitions to be used |
| src | <code>object</code> | origin of the data to be copied |
| cb | <code>function</code> | callback to be executed for each copied value |
| prefix | <code>String</code> | name prefix used for all attributes |
| prefix | <code>string</code> | name prefix used for all attributes |

@@ -70,5 +70,5 @@

| --- | --- | --- |
| object | <code>Object</code> | to query |
| atts | <code>Object</code> | attribute definitions to be used |
| path | <code>String</code> | attribute name |
| object | <code>object</code> | to query |
| atts | <code>object</code> | attribute definitions to be used |
| path | <code>string</code> | attribute name |

@@ -78,13 +78,13 @@

## model-attributes.getAttributes(object, attributes, options) ⇒ <code>Object</code>
## model-attributes.getAttributes(object, attributes, options) ⇒ <code>object</code>
Retrive attribute values from an object
**Kind**: static method of <code>[model-attributes](#module_model-attributes)</code>
**Returns**: <code>Object</code> - values
**Returns**: <code>object</code> - values
| Param | Type | Description |
| --- | --- | --- |
| object | <code>Object</code> | attribute value source |
| attributes | <code>Object</code> | |
| options | <code>Object</code> | |
| object | <code>object</code> | attribute value source |
| attributes | <code>object</code> | |
| options | <code>object</code> | |

@@ -94,11 +94,11 @@

## model-attributes.createAttributes(definitions) ⇒ <code>Object</code>
## model-attributes.createAttributes(definitions) ⇒ <code>object</code>
Create attributes from its definition
**Kind**: static method of <code>[model-attributes](#module_model-attributes)</code>
**Returns**: <code>Object</code> - attributes
**Returns**: <code>object</code> - attributes
| Param | Type |
| --- | --- |
| definitions | <code>Object</code> |
| definitions | <code>object</code> |

@@ -108,12 +108,12 @@

## model-attributes.mergeAttributes(dest, atts) ⇒ <code>Object</code>
## model-attributes.mergeAttributes(dest, atts) ⇒ <code>object</code>
Merge attribute definitions
**Kind**: static method of <code>[model-attributes](#module_model-attributes)</code>
**Returns**: <code>Object</code> - merged definitions (dest)
**Returns**: <code>object</code> - merged definitions (dest)
| Param | Type | Description |
| --- | --- | --- |
| dest | <code>Object</code> | attribute definitions to be used also the merge target |
| atts | <code>Object</code> | attribute definitions to be used |
| dest | <code>object</code> | attribute definitions to be used also the merge target |
| atts | <code>object</code> | attribute definitions to be used |

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