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

base-methods

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

base-methods - npm Package Compare versions

Comparing version 0.2.8 to 0.2.9

19

index.js

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

Base.prototype = Emitter({

@@ -64,3 +63,3 @@ constructor: Base,

set: function (key, val) {
set: function(key, val) {
if (typeof key === 'object') {

@@ -96,3 +95,3 @@ this.visit('set', key);

get: function (key) {
get: function(key) {
if (name) {

@@ -121,3 +120,3 @@ return utils.get(this[name], key);

del: function (key) {
del: function(key) {
if (Array.isArray(key)) {

@@ -152,8 +151,4 @@ this.visit('del', key);

define: function (key, value) {
if (name) {
utils.define(this[name], key, value);
} else {
utils.define(this, key, value);
}
define: function(key, value) {
utils.define(this, key, value);
return this;

@@ -173,3 +168,3 @@ },

visit: function (method, val) {
visit: function(method, val) {
utils.visit(this, method, val);

@@ -212,2 +207,2 @@ return this;

module.exports.create = base;
module.exports.namespace = base;
{
"name": "base-methods",
"description": "Starter for creating a node.js application with a handful of common methods, like `set`, `get`, and `del`.",
"version": "0.2.8",
"version": "0.2.9",
"homepage": "https://github.com/jonschlinkert/base-methods",

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

@@ -68,3 +68,3 @@ # base-methods [![NPM version](https://badge.fury.io/js/base-methods.svg)](http://badge.fury.io/js/base-methods)

### [.set](index.js#L63)
### [.set](index.js#L62)

@@ -95,3 +95,3 @@ Assign `value` to `key`. Also emits `set` with the key and value.

### [.get](index.js#L94)
### [.get](index.js#L93)

@@ -114,3 +114,3 @@ Return the stored value of `key`. Dot notation may be used to get [nested property values][get-value].

### [.del](index.js#L118)
### [.del](index.js#L117)

@@ -134,3 +134,3 @@ Delete `key` from the instance. Also emits `del` with the key of the deleted item.

### [.define](index.js#L148)
### [.define](index.js#L147)

@@ -154,3 +154,3 @@ Define a non-enumerable property on the instance.

### [.visit](index.js#L168)
### [.visit](index.js#L163)

@@ -166,3 +166,3 @@ Visit `method` over the items in the given object, or map

### [.extend](index.js#L182)
### [.extend](index.js#L177)

@@ -173,3 +173,3 @@ Static method for inheriting both the prototype and

### [.inherit](index.js#L192)
### [.inherit](index.js#L187)

@@ -214,3 +214,3 @@ Similar to `util.inherit`, but copies all static properties,

_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on September 30, 2015._
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on October 01, 2015._

@@ -217,0 +217,0 @@ [class-utils]: https://github.com/jonschlinkert/class-utils

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