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

datamap-interface

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datamap-interface - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

license

36

index.js

@@ -19,3 +19,3 @@ 'use strict'

/* Interface for a map of items. */
// Interface for a map of items.
function DatamapInterface(values) {

@@ -26,3 +26,3 @@ this.map = {}

/* Add all `values` to `object`. */
// Add all `values` to `object`.
function addAll(object, values) {

@@ -36,3 +36,3 @@ forPropertyInObject(values, set)

/* Remove every key in `keys` from `object`. */
// Remove every key in `keys` from `object`.
function removeAll(object, keys) {

@@ -46,6 +46,6 @@ forValueInArray(keys, unset)

/* Add values to map.
* When the second argument is given, it is treated as
* a single value and the first parameter as a key.
* Otherwise, every value in the first argument is added. */
// Add values to map.
// When the second argument is given, it is treated as a single value and the
// first parameter as a key.
// Otherwise, every value in the first argument is added.
function add(values, value) {

@@ -63,6 +63,6 @@ var self = this

/* Remove keys from map.
* When the second argument is given, it is treated as
* a single value and the first parameter as a key.
* Otherwise, every value in the first argument is added. */
// Remove keys from map.
// When the second argument is given, it is treated as a single value and the
// first parameter as a key.
// Otherwise, every value in the first argument is added.
function remove(keys) {

@@ -80,3 +80,3 @@ var self = this

/* Get all values. */
// Get all values.
function all() {

@@ -90,3 +90,3 @@ var values = {}

/* Get all keys. */
// Get all keys.
function getKeys() {

@@ -105,3 +105,3 @@ var result = []

/* Get a value. */
// Get a value.
function get(key) {

@@ -111,3 +111,3 @@ return real(this.map, key) ? this.map[key] : null

/* Whether or not `value` is in context. */
// Whether or not `value` is in context.
function is(key) {

@@ -117,3 +117,3 @@ return real(this.map, key)

/* Loop over an `Object`. */
// Loop over an `Object`.
function forPropertyInObject(object, callback) {

@@ -129,3 +129,3 @@ var key

/* Loop over an `Array`. */
// Loop over an `Array`.
function forValueInArray(array, callback) {

@@ -140,5 +140,5 @@ var index = -1

/* Detect if a key is defined on an object. */
// Detect if a key is defined on an object.
function real(object, key) {
return own.call(object, key) && object[key] !== undefined
}
{
"name": "datamap-interface",
"version": "1.0.2",
"version": "1.0.3",
"description": "Simple interface for a map functioning as a database",

@@ -13,5 +13,5 @@ "license": "MIT",

"bugs": "https://github.com/wooorm/datamap-interface/issues",
"author": "Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)",
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
"contributors": [
"Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)"
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
],

@@ -24,14 +24,14 @@ "files": [

"browserify": "^16.0.0",
"esmangle": "^1.0.0",
"nyc": "^11.0.0",
"nyc": "^14.0.0",
"prettier": "^1.12.1",
"remark-cli": "^5.0.0",
"remark-cli": "^6.0.0",
"remark-preset-wooorm": "^4.0.0",
"tape": "^4.4.0",
"xo": "^0.20.0"
"tinyify": "^2.5.0",
"xo": "^0.24.0"
},
"scripts": {
"format": "remark . -qfo && prettier --write '**/*.js' && xo --fix",
"build-bundle": "browserify index.js -s DatamapInterface > datamap-interface.js",
"build-mangle": "esmangle datamap-interface.js > datamap-interface.min.js",
"format": "remark . -qfo && prettier --write \"**/*.js\" && xo --fix",
"build-bundle": "browserify . -s DatamapInterface -o datamap-interface.js",
"build-mangle": "browserify . -s DatamapInterface -p tinyify -o datamap-interface.min.js",
"build": "npm run build-bundle && npm run build-mangle",

@@ -59,6 +59,2 @@ "test-api": "node test",

"esnext": false,
"rules": {
"no-var": "off",
"prefer-arrow-callback": "off"
},
"ignores": [

@@ -65,0 +61,0 @@ "datamap-interface.js"

@@ -1,3 +0,8 @@

# datamap-interface [![Build Status][travis-badge]][travis] [![Coverage Status][codecov-badge]][codecov]
# datamap-interface
[![Build][build-badge]][build]
[![Coverage][coverage-badge]][coverage]
[![Downloads][downloads-badge]][downloads]
[![Size][size-badge]][size]
A simple interface for a map.

@@ -164,16 +169,24 @@

[travis-badge]: https://img.shields.io/travis/wooorm/datamap-interface.svg
[build-badge]: https://img.shields.io/travis/wooorm/datamap-interface.svg
[travis]: https://travis-ci.org/wooorm/datamap-interface
[build]: https://travis-ci.org/wooorm/datamap-interface
[codecov-badge]: https://img.shields.io/codecov/c/github/wooorm/datamap-interface.svg
[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/datamap-interface.svg
[codecov]: https://codecov.io/github/wooorm/datamap-interface
[coverage]: https://codecov.io/github/wooorm/datamap-interface
[downloads-badge]: https://img.shields.io/npm/dm/datamap-interface.svg
[downloads]: https://www.npmjs.com/package/datamap-interface
[size-badge]: https://img.shields.io/bundlephobia/minzip/datamap-interface.svg
[size]: https://bundlephobia.com/result?p=datamap-interface
[npm]: https://docs.npmjs.com/cli/install
[license]: LICENSE
[license]: license
[author]: http://wooorm.com
[author]: https://wooorm.com
[add]: #datamapinterfaceaddvalues
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