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

base-data

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

base-data - npm Package Compare versions

Comparing version 0.3.5 to 0.3.6

3

index.js

@@ -22,2 +22,4 @@ /*!

return function plugin() {
if (this.isRegistered(prop)) return;
if (!utils.has(this, prop)) {

@@ -180,2 +182,3 @@ this.set(prop, {});

}
return val;
}

@@ -182,0 +185,0 @@ };

15

package.json
{
"name": "base-data",
"description": "adds a `data` method to base-methods.",
"version": "0.3.5",
"version": "0.3.6",
"homepage": "https://github.com/jonschlinkert/base-data",

@@ -32,7 +32,7 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

"resolve-glob": "^0.1.8",
"set-value": "^0.3.2",
"union-value": "^0.2.1"
"set-value": "^0.3.3",
"union-value": "^0.2.3"
},
"devDependencies": {
"base-methods": "^0.6.2",
"base": "^0.6.4",
"gulp": "^3.9.0",

@@ -59,5 +59,5 @@ "gulp-eslint": "^1.1.1",

"list": [
"base",
"base-cli",
"base-config",
"base-methods",
"base-options",

@@ -72,4 +72,7 @@ "base-pipeline",

],
"layout": "default"
"layout": "default",
"reflinks": [
"base"
]
}
}

@@ -5,8 +5,8 @@ # base-data [![NPM version](https://img.shields.io/npm/v/base-data.svg)](https://www.npmjs.com/package/base-data) [![Build Status](https://img.shields.io/travis/jonschlinkert/base-data.svg)](https://travis-ci.org/jonschlinkert/base-data)

- [Install](#install)
- [Usage](#usage)
- [API](#api)
* [[.dataLoader](index.js#L50)](#-dataloader--indexjs-l50-)
* [[.data](index.js#L85)](#-data--indexjs-l85-)
- [Glob patterns](#glob-patterns)
- [Namespacing](#namespacing)
- [History](#history)
- [Related projects](#related-projects)

@@ -20,2 +20,10 @@ - [Running tests](#running-tests)

## Install
Install with [npm](https://www.npmjs.com/):
```sh
$ npm i base-data --save
```
## Usage

@@ -62,3 +70,3 @@

### [.dataLoader](index.js#L50)
### [.dataLoader](index.js#L52)

@@ -85,3 +93,3 @@ Register a data loader for loading data onto `app.cache.data`.

### [.data](index.js#L85)
### [.data](index.js#L87)

@@ -157,7 +165,14 @@ Load data onto `app.cache.data`

## History
**v0.3.6**
* adds a basic loader that only calls the `JSON.parse` method, if no other loaders are defined
* calls `.isRegistered` from [base](https://github.com/node-base/base) to ensure the plugin is only loaded once on an instance
## Related projects
* [base](https://www.npmjs.com/package/base): base is the foundation for creating modular, unit testable and highly pluggable node.js applications, starting… [more](https://www.npmjs.com/package/base) | [homepage](https://github.com/node-base/base)
* [base-cli](https://www.npmjs.com/package/base-cli): Plugin for base-methods that maps built-in methods to CLI args (also supports methods from a… [more](https://www.npmjs.com/package/base-cli) | [homepage](https://github.com/jonschlinkert/base-cli)
* [base-config](https://www.npmjs.com/package/base-config): base-methods plugin that adds a `config` method for mapping declarative configuration values to other 'base'… [more](https://www.npmjs.com/package/base-config) | [homepage](https://github.com/jonschlinkert/base-config)
* [base-methods](https://www.npmjs.com/package/base-methods): base-methods is the foundation for creating modular, unit testable and highly pluggable node.js applications, starting… [more](https://www.npmjs.com/package/base-methods) | [homepage](https://github.com/jonschlinkert/base-methods)
* [base-options](https://www.npmjs.com/package/base-options): Adds a few options methods to base-methods, like `option`, `enable` and `disable`. See the readme… [more](https://www.npmjs.com/package/base-options) | [homepage](https://github.com/jonschlinkert/base-options)

@@ -194,2 +209,2 @@ * [base-pipeline](https://www.npmjs.com/package/base-pipeline): base-methods plugin that adds pipeline and plugin methods for dynamically composing streaming plugin pipelines. | [homepage](https://github.com/jonschlinkert/base-pipeline)

_This file was generated by [verb](https://github.com/verbose/verb) on January 06, 2016._
_This file was generated by [verb](https://github.com/verbose/verb) on January 19, 2016._

@@ -34,2 +34,8 @@ 'use strict';

if (len === 0 && ext === '.json') {
return [function(str) {
return JSON.parse(str);
}];
}
while (++i < len) {

@@ -36,0 +42,0 @@ var loader = loaders[i];

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