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

intervals-fn

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

intervals-fn - npm Package Compare versions

Comparing version 2.5.0 to 2.5.1

9

dist/lib.d.ts

@@ -179,7 +179,8 @@ import { interval, roat } from './data.structures';

*
* Curried function. Accept array of intervals. Doesn't mutate input. Output keeps input's structure.
* `interalA` and `interalB` can have different structure.
* Curried function. Accept array of intervals. Doesn't mutate input. Output keeps `intervalB` structure.
*
* interval(s) A | interval(s) B | result
* --- | --- | ---
* { start: 0, end: 4 } | { start: 3, end: 7, foo: 'bar' } | [{ start: 3, end: 4, foo: 'bar' }]
* { from: 0, to: 4 } | { start: 3, end: 7, foo: 'bar' } | [{ start: 3, end: 4, foo: 'bar' }]
* { start: 0, end: 10 } | [{ start: 2, end: 5}, { start: 5, end: 8}] | [{ start: 2, end: 5 }, { start: 5, end: 8 }]

@@ -192,4 +193,4 @@ * [{ start: 0, end: 4 }, { start: 8, end: 11 }] | [{ start: 2, end: 9 }, { start: 10, end: 13 }] | [{ start: 2, end: 4 }, { start: 8, end: 9 }, { start: 10, end: 11 }]

*/
export declare function intersect<T extends interval>(intervalA: T | roat<T>, intervalB: T | roat<T>): T[];
export declare function intersect<T extends interval>(intervalA: T | roat<T>): (intervalB: T | roat<T>) => T[];
export declare function intersect<T extends interval>(intervalA: interval | roat<interval>, intervalB: T | roat<T>): T[];
export declare function intersect<T extends interval>(intervalA: interval | roat<interval>): (intervalB: T | roat<T>) => T[];
/**

@@ -196,0 +197,0 @@ * Subtact `intervalA` with `intervalB`. `intervalB` act as a mask.

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

{"name":"intervals-fn","version":"2.5.0","description":"Manipulate intervals in a functional way","main":"dist/index.bundle.js","types":"dist/lib.d.ts","scripts":{"ava":"ava build/*.test.js","test":"tslint -p ./ && tsc && nyc --reporter=lcov npm run ava","test:codecov":"tslint -p ./ && tsc && nyc npm run ava","build":"webpack","doc":"npm run build && typedoc --out docs/ dist/","prepublish":"npm run build","semantic-release":"semantic-release pre && npm publish && semantic-release post","watch:ts":"tsc -w","watch:ava":"ava -w build/*.test.js","watch:test":"concurrently -k -p \"[{name}]\" -n \"TypeScript,Ava\" -c \"blue.bold,magenta.bold\" \"npm run watch:ts\" \"npm run watch:ava\""},"repository":{"type":"git","url":"https://github.com/js-republic/intervals-fn"},"private":false,"publishConfig":{"tag":"dev","access":"public"},"keywords":["interval","range","intersection","union","subtraction","typescript"],"license":"MIT","bugs":{"url":"https://github.com/js-republic/intervals-fn/issues"},"homepage":"https://github.com/js-republic/intervals-fn#readme","dependencies":{},"devDependencies":{"@semantic-release/release-notes-generator":"^5.0.1","@types/moment-range":"^3.0.4","@types/ramda":"github:types/npm-ramda#dist","ava":"^0.23.0","concurrently":"^3.5.0","cz-conventional-changelog":"^2.1.0","moment":"^2.19.2","moment-range":"^3.0.3","nyc":"^11.3.0","prettier":"^1.8.2","ramda":"^0.25.0","semantic-release":"^8.2.0","ts-loader":"^3.1.1","tslint":"^5.8.0","tslint-config-prettier":"^1.6.0","typedoc":"^0.9.0","typescript":"^2.6.1","webpack":"^3.8.1"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}}}
{"name":"intervals-fn","version":"2.5.1","description":"Manipulate intervals in a functional way","main":"dist/index.bundle.js","types":"dist/lib.d.ts","scripts":{"ava":"ava build/*.test.js","test":"tslint -p ./ && tsc && nyc --reporter=lcov npm run ava","test:codecov":"tslint -p ./ && tsc && nyc npm run ava","build":"webpack","doc":"npm run build && typedoc --out docs/ dist/","prepublish":"npm run build","semantic-release":"semantic-release pre && npm publish && semantic-release post","watch:ts":"tsc -w","watch:ava":"ava -w build/*.test.js","watch:test":"concurrently -k -p \"[{name}]\" -n \"TypeScript,Ava\" -c \"blue.bold,magenta.bold\" \"npm run watch:ts\" \"npm run watch:ava\""},"repository":{"type":"git","url":"https://github.com/js-republic/intervals-fn"},"private":false,"publishConfig":{"tag":"dev","access":"public"},"keywords":["interval","range","intersection","union","subtraction","typescript"],"license":"MIT","bugs":{"url":"https://github.com/js-republic/intervals-fn/issues"},"homepage":"https://github.com/js-republic/intervals-fn#readme","dependencies":{},"devDependencies":{"@semantic-release/release-notes-generator":"^5.0.1","@types/moment-range":"^3.0.4","@types/ramda":"github:types/npm-ramda#dist","ava":"^0.23.0","concurrently":"^3.5.0","cz-conventional-changelog":"^2.1.0","moment":"^2.19.2","moment-range":"^3.0.3","nyc":"^11.3.0","prettier":"^1.8.2","ramda":"^0.25.0","semantic-release":"^8.2.0","ts-loader":"^3.1.1","tslint":"^5.8.0","tslint-config-prettier":"^1.6.0","typedoc":"^0.9.0","typescript":"^2.6.1","webpack":"^3.8.1"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}}}

Sorry, the diff of this file is too big to display

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