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

map-number

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

map-number - npm Package Compare versions

Comparing version 1.2.5 to 1.2.6

types/create.d.ts

117

CHANGELOG.md
# map-number changelog
## 1.2.5
## Changes
***14-SEP-2019***
### [1.2.6](https://github.com/manferlo81/map-number/compare/v1.2.5...v1.2.6) (2019-11-07)
* dependencies updated
## 1.2.4
### Other Changes
***29-AUG-2019***
* setup standard-version ([278038a](https://github.com/manferlo81/map-number/commit/278038aebaf167d1f45a681128e5f55da40e2a40))
* switched from tslint to [@typescript-eslint](https://github.com/typescript-eslint) ([11912a6](https://github.com/manferlo81/map-number/commit/11912a6ff2247d8067c4b78ebbe652081bf7d673))
* **deps-dev:** Bump @types/jest from 24.0.21 to 24.0.22 ([#65](https://github.com/manferlo81/map-number/issues/65)) ([95d61a9](https://github.com/manferlo81/map-number/commit/95d61a9d8275808efdfa717ad34895052be121c8))
* **deps-dev:** bump @types/node from 12.12.5 to 12.12.6 ([#64](https://github.com/manferlo81/map-number/issues/64)) ([4c39728](https://github.com/manferlo81/map-number/commit/4c3972891d1519bdb32f3c939949f16f0f7e6831))
* **deps-dev:** bump bundlib from 0.13.0 to 0.13.1 ([#66](https://github.com/manferlo81/map-number/issues/66)) ([5f6943d](https://github.com/manferlo81/map-number/commit/5f6943d46eb3deb9021424c3ce1ff1e317e7f83e))
* **deps-dev:** Bump typescript from 3.6.4 to 3.7.2 ([#62](https://github.com/manferlo81/map-number/issues/62)) ([c3ad17e](https://github.com/manferlo81/map-number/commit/c3ad17ec0cf8ff927e046f17d685c35ac63ea092))
* edited badges ([99b8f03](https://github.com/manferlo81/map-number/commit/99b8f03661f98b2b294dab84e9178931772dcc1f))
### [1.2.5](https://github.com/manferlo81/map-number/compare/v1.2.4...v1.2.5) (2019-09-14)
* dependencies updated
## 1.2.3
### [1.2.4](https://github.com/manferlo81/map-number/compare/v1.2.3...v1.2.4) (2019-08-29)
***07-JUL-2019***
* dependencies updated
### [1.2.3](https://github.com/manferlo81/map-number/compare/v1.2.2...v1.2.3) (2019-07-07)
* dependencies updated
## 1.2.2
### [1.2.2](https://github.com/manferlo81/map-number/compare/v1.2.1...v1.2.2) (2019-07-01)
***01-JUL-2019***
* dependencies updated

@@ -29,12 +36,8 @@ * added `husky`

## 1.2.1
### [1.2.1](https://github.com/manferlo81/map-number/compare/v1.2.0...v1.2.1) (2019-06-22)
***22-JUN-2019***
* dependencies updated
## 1.2.0
### [1.2.0](https://github.com/manferlo81/map-number/compare/v1.1.6...v1.2.0) (2019-06-18)
***18-JUN-2019***
* create method deprecated

@@ -44,45 +47,31 @@ * wrap as default wrap method

## 1.1.6
### [1.1.6](https://github.com/manferlo81/map-number/compare/v1.1.5...v1.1.6) (2019-06-07)
***07-JUN-2019***
* dependencies updated
## 1.1.5
### [1.1.5](https://github.com/manferlo81/map-number/compare/v1.1.4...v1.1.5) (2019-06-01)
***01-JUN-2019***
* dependencies updated
## 1.1.4
### [1.1.4](https://github.com/manferlo81/map-number/compare/v1.1.3...v1.1.4) (2019-06-01)
***01-JUN-2019***
* dependencies updated
* improved documentation
## 1.1.3
### [1.1.3](https://github.com/manferlo81/map-number/compare/v1.1.2...v1.1.3) (2019-05-31)
***31-MAY-2019***
* fixed cdn links for latest version
## 1.1.2
### [1.1.2](https://github.com/manferlo81/map-number/compare/v1.1.1...v1.1.2) (2019-05-30)
***30-MAY-2019***
* build minified `umd` module
* dependencies updated
## 1.1.1
### [1.1.1](https://github.com/manferlo81/map-number/compare/v1.1.0...v1.1.1) (2019-05-29)
***29-MAY-2019***
* improved documentation
* dependencies updated
## 1.1.0
### [1.1.0](https://github.com/manferlo81/map-number/compare/v1.0.13...v1.1.0) (2019-05-29)
***29-MAY-2019***
* added `ceil` method

@@ -93,38 +82,26 @@ * fixed: typo on readme

## 1.0.13
### [1.0.13](https://github.com/manferlo81/map-number/compare/v1.0.12...v1.0.13) (2019-05-28)
***28-MAY-2019***
* added badge: `install size`
* improved documentation
## 1.0.12
### [1.0.12](https://github.com/manferlo81/map-number/compare/v1.0.11...v1.0.12) (2019-05-28)
***28-MAY-2019***
* dependencies updated
* installed `typescript` & `tslint` locally
## 1.0.11
### [1.0.11](https://github.com/manferlo81/map-number/compare/v1.0.10...v1.0.11) (2019-05-27)
***27-MAY-2019***
* added badge: `types`
## 1.0.10
### [1.0.10](https://github.com/manferlo81/map-number/compare/v1.0.9...v1.0.10) (2019-05-27)
***27-MAY-2019***
* added test for alias
## 1.0.9
### [1.0.9](https://github.com/manferlo81/map-number/compare/v1.0.8...v1.0.9) (2019-05-27)
***27-MAY-2019***
* implemented own `min` & `max` function
## 1.0.8
### [1.0.8](https://github.com/manferlo81/map-number/compare/v1.0.7...v1.0.8) (2019-05-25)
***25-MAY-2019***
* improved documentation

@@ -134,25 +111,17 @@ * added package keywords

## 1.0.7
### [1.0.7](https://github.com/manferlo81/map-number/compare/v1.0.6...v1.0.7) (2019-05-24)
***24-MAY-2019***
* dependencies updated
## 1.0.6
### [1.0.6](https://github.com/manferlo81/map-number/compare/v1.0.5...v1.0.6) (2019-05-24)
***24-MAY-2019***
* improved documentation
## 1.0.5
### [1.0.5](https://github.com/manferlo81/map-number/compare/v1.0.4...v1.0.5) (2019-05-22)
***22-MAY-2019***
* added badge: `snyk`
* added badge: `david dependencies`
## 1.0.4
### [1.0.4](https://github.com/manferlo81/map-number/compare/v1.0.3...v1.0.4) (2019-05-22)
***22-MAY-2019***
* added new keywords

@@ -162,20 +131,14 @@ * added wrap alias for `create` method

## 1.0.3
### [1.0.3](https://github.com/manferlo81/map-number/compare/v1.0.2...v1.0.3) (2019-05-22)
***22-MAY-2019***
* improved documentation
* source code refactoring
## 1.0.2
### [1.0.2](https://github.com/manferlo81/map-number/compare/v1.0.1...v1.0.2) (2019-05-22)
***22-MAY-2019***
* added `circleci` & `greenkeeper`
* updated readme
## 1.0.1
### [1.0.1](https://github.com/manferlo81/map-number/compare/v1.0.0...v1.0.1) (2019-05-21)
***21-MAY-2019***
* fixed [#1](https://github.com/manferlo81/map-number/issues/1)

@@ -186,4 +149,2 @@ * refactoring

***21-MAY-2019***
* first release

@@ -30,3 +30,3 @@ 'use strict';

function wrap(func, inMin, inMax, outMin, outMax) {
function create(func, inMin, inMax, outMin, outMax) {
return function (num) {

@@ -38,3 +38,3 @@ return func(num, inMin, inMax, outMin, outMax);

exports.ceil = ceil;
exports.create = wrap;
exports.create = create;
exports.floor = floor;

@@ -44,3 +44,3 @@ exports.limit = limit;

exports.round = round;
exports.wrap = wrap;
exports.wrap = create;
//# sourceMappingURL=map.cjs.js.map

@@ -28,3 +28,3 @@ function map(num, inMin, inMax, outMin, outMax) {

function wrap(func, inMin, inMax, outMin, outMax) {
function create(func, inMin, inMax, outMin, outMax) {
return function (num) {

@@ -35,3 +35,3 @@ return func(num, inMin, inMax, outMin, outMax);

export { ceil, wrap as create, floor, limit, map, round, wrap };
export { ceil, create, floor, limit, map, round, create as wrap };
//# sourceMappingURL=map.es.js.map

@@ -5,3 +5,3 @@ (function (global, factory) {

(global = global || self, factory(global.mapNum = {}));
}(this, function (exports) { 'use strict';
}(this, (function (exports) { 'use strict';

@@ -35,3 +35,3 @@ function map(num, inMin, inMax, outMin, outMax) {

function wrap(func, inMin, inMax, outMin, outMax) {
function create(func, inMin, inMax, outMin, outMax) {
return function (num) {

@@ -43,3 +43,3 @@ return func(num, inMin, inMax, outMin, outMax);

exports.ceil = ceil;
exports.create = wrap;
exports.create = create;
exports.floor = floor;

@@ -49,5 +49,5 @@ exports.limit = limit;

exports.round = round;
exports.wrap = wrap;
exports.wrap = create;
}));
})));
//# sourceMappingURL=map.umd.js.map
{
"name": "map-number",
"version": "1.2.5",
"version": "1.2.6",
"description": "processing/p5.js map like function, including floating point numbers support",

@@ -27,19 +27,22 @@ "main": "dist/map.cjs.js",

"clean": "rm -rf node_modules/.cache/bundlib node_modules/.cache/jest dist types coverage",
"lint": "tslint src/**/*.ts",
"lint": "eslint src/**/*.ts",
"dev": "bundlib -dw",
"build": "bundlib -d",
"test": "jest --color -w 3",
"preversion": "npm run clean && npm test && npm run lint && npm run build"
"prerelease": "npm run clean && npm test && npm run lint && npm run build",
"release": "standard-version"
},
"devDependencies": {
"@types/jest": "^24.0.18",
"@types/node": "^12.7.5",
"bundlib": "^0.12.5",
"chokidar": "^3.0.2",
"eslint": "^6.4.0",
"husky": "^3.0.5",
"@types/jest": "^24.0.22",
"@types/node": "^12.12.6",
"@typescript-eslint/eslint-plugin": "^2.6.1",
"@typescript-eslint/parser": "^2.6.1",
"bundlib": "^0.13.1",
"chokidar": "^3.3.0",
"eslint": "^6.6.0",
"husky": "^3.0.9",
"jest": "^24.9.0",
"standard-version": "^7.0.0",
"ts-jest": "^24.1.0",
"tslint": "^5.20.0",
"typescript": "^3.6.3"
"typescript": "^3.7.2"
},

@@ -46,0 +49,0 @@ "files": [

# map-number
[![CircleCI](https://circleci.com/gh/manferlo81/map-number.svg?style=svg)](https://circleci.com/gh/manferlo81/map-number) [![dependabot](https://badgen.net/dependabot/manferlo81/map-number?icon=dependabot)](https://dependabot.com) [![npm](https://badgen.net/npm/v/map-number)](https://www.npmjs.com/package/map-number) [![codecov](https://codecov.io/gh/manferlo81/map-number/branch/master/graph/badge.svg)](https://codecov.io/gh/manferlo81/map-number) [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/map-number/badge?style=rounded)](https://www.jsdelivr.com/package/npm/map-number) [![dependencies](https://badgen.net/david/dep/manferlo81/map-number)](https://david-dm.org/manferlo81/map-number) [![dev dependencies](https://badgen.net/david/dev/manferlo81/map-number)](https://david-dm.org/manferlo81/map-number?type=dev) [![packagephobia](https://badgen.net/packagephobia/install/map-number)](https://packagephobia.now.sh/result?p=map-number) [![bundlephobia](https://badgen.net/bundlephobia/min/map-number)](https://bundlephobia.com/result?p=map-number) [![types](https://img.shields.io/npm/types/map-number.svg)](https://github.com/microsoft/typescript) [![Known Vulnerabilities](https://snyk.io/test/github/manferlo81/map-number/badge.svg?targetFile=package.json)](https://snyk.io/test/github/manferlo81/map-number?targetFile=package.json) [![license](https://badgen.net/npm/license/map-number)](LICENSE)
[![CircleCI](https://circleci.com/gh/manferlo81/map-number.svg?style=svg)](https://circleci.com/gh/manferlo81/map-number) [![dependabot](https://api.dependabot.com/badges/status?host=github&repo=manferlo81/map-number)](https://dependabot.com) [![npm](https://badgen.net/npm/v/map-number)](https://www.npmjs.com/package/map-number) [![codecov](https://codecov.io/gh/manferlo81/map-number/branch/master/graph/badge.svg)](https://codecov.io/gh/manferlo81/map-number) [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/map-number/badge?style=rounded)](https://www.jsdelivr.com/package/npm/map-number) [![dependencies](https://badgen.net/david/dep/manferlo81/map-number)](https://david-dm.org/manferlo81/map-number) [![dev dependencies](https://badgen.net/david/dev/manferlo81/map-number)](https://david-dm.org/manferlo81/map-number?type=dev) [![packagephobia](https://badgen.net/packagephobia/install/map-number)](https://packagephobia.now.sh/result?p=map-number) [![bundlephobia](https://badgen.net/bundlephobia/min/map-number)](https://bundlephobia.com/result?p=map-number) [![types](https://img.shields.io/npm/types/map-number.svg)](https://github.com/microsoft/typescript) [![Known Vulnerabilities](https://snyk.io/test/github/manferlo81/map-number/badge.svg?targetFile=package.json)](https://snyk.io/test/github/manferlo81/map-number?targetFile=package.json) [![license](https://badgen.net/github/license/manferlo81/map-number)](LICENSE)
[processing](https://processing.org/reference/map_.html) / [p5.js](http://p5js.org/reference/#/p5/map) map like function, including floating point numbers support.
> :warning: this `map` function has nothing to do with `Array.prototype.map` method.

@@ -8,0 +6,0 @@

@@ -1,6 +0,6 @@

export { default as map } from "./map";
export { default as floor } from "./floor";
export { default as ceil } from "./ceil";
export { default as round } from "./round";
export { default as limit } from "./limit";
export { default as wrap, default as create } from "./wrap";
export { default as map } from './map';
export { default as floor } from './floor';
export { default as ceil } from './ceil';
export { default as round } from './round';
export { default as limit } from './limit';
export { default as create, default as wrap } from './create';

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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