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

omnibelt

Package Overview
Dependencies
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

omnibelt - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

scripts/gen-ramda-index-file.js

3

package.json
{
"name": "omnibelt",
"description": "A utility belt that normalizes and wraps `Ramda` and `Lodash/FP`.",
"version": "3.1.0",
"version": "3.1.1",
"license": "MIT",

@@ -27,2 +27,3 @@ "main": "src/index.js",

"test:watch": "yarn test --watch -o",
"ramda:index": "node ./scripts/gen-ramda-index-file.js",
"docs": "yarn docs:open",

@@ -29,0 +30,0 @@ "predocs:build": "./scripts/gen-3rd-party-docs.js",

@@ -104,2 +104,7 @@ # Omnibelt

- `3.1.1`
- Added methods:
- `size` (Lodash)
- removed `@rjhilgefort/export-dir`.
- updated index.js files to be destructured on import such as `import { size } from 'omnibelt'`.
- `3.1.0`

@@ -109,2 +114,3 @@ - bumped .node-version to `18.16.0`

- bumped various dev dependencies
- removed
- `3.0.0`

@@ -111,0 +117,0 @@ - bumped .node-version to `16.17.1`

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

module.exports = Object.assign(
{},
require('./lodash'),
require('./ramda'),
require('./omnibelt')
);
module.exports = {
...require('./lodash'),
...require('./ramda'),
...require('./omnibelt')
};

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

const { pick } = require('ramda');
const _ = require('lodash/fp');

@@ -11,41 +10,42 @@

*/
module.exports = pick([
'camelCase',
'capitalize',
'castArray',
'compact',
'escape',
'escapeRegExp',
'flip',
'forEach',
'isArrayLike',
'isNull',
'isPlainObject',
'isUndefined',
'kebabCase',
'keyBy',
'lowerFirst',
'mapKeys',
'noop',
'pad',
'padChars',
'padCharsEnd',
'padCharsStart',
'padEnd',
'padStart',
'snakeCase',
'split',
'startCase',
'toInteger',
'toLower',
'toNumber',
'toPlainObject',
'toString',
'toUpper',
'trim',
'trimEnd',
'trimStart',
'unescape',
'upperFirst',
'words'
], _);
module.exports.camelCase = _.camelCase;
module.exports.capitalize = _.capitalize;
module.exports.castArray = _.castArray;
module.exports.compact = _.compact;
module.exports.deburr = _.deburr;
module.exports.escape = _.escape;
module.exports.escapeRegExp = _.escapeRegExp;
module.exports.flip = _.flip;
module.exports.forEach = _.forEach;
module.exports.isArrayLike = _.isArrayLike;
module.exports.isNull = _.isNull;
module.exports.isPlainObject = _.isPlainObject;
module.exports.isUndefined = _.isUndefined;
module.exports.kebabCase = _.kebabCase;
module.exports.keyBy = _.keyBy;
module.exports.lowerFirst = _.lowerFirst;
module.exports.mapKeys = _.mapKeys;
module.exports.noop = _.noop;
module.exports.pad = _.pad;
module.exports.padChars = _.padChars;
module.exports.padCharsEnd = _.padCharsEnd;
module.exports.padCharsStart = _.padCharsStart;
module.exports.padEnd = _.padEnd;
module.exports.padStart = _.padStart;
module.exports.snakeCase = _.snakeCase;
module.exports.split = _.split;
module.exports.startCase = _.startCase;
module.exports.toInteger = _.toInteger;
module.exports.toLower = _.toLower;
module.exports.toNumber = _.toNumber;
module.exports.toPlainObject = _.toPlainObject;
module.exports.toString = _.toString;
module.exports.toUpper = _.toUpper;
module.exports.size = _.size;
module.exports.trim = _.trim;
module.exports.trimEnd = _.trimEnd;
module.exports.trimStart = _.trimStart;
module.exports.truncate = _.truncate;
module.exports.unescape = _.unescape;
module.exports.upperFirst = _.upperFirst;
module.exports.words = _.words;

@@ -1,68 +0,66 @@

module.exports = {
stringToBoolean: require('./string-to-boolean'),
containsAll: require('./contains-all'),
stringify: require('./stringify'),
clampPositive: require('./clamp-positive'),
isPopulatedString: require('./is-populated-string'),
eqDotPathsShallow: require('./eq-dot-paths-shallow'),
mergeWithArrays: require('./merge-with-arrays'),
testHarnessUnary: require('./test-harness-unary'),
keyByWith: require('./key-by-with'),
ensureArray: require('./ensure-array'),
testCases: require('./test-cases'),
format: require('./format'),
mergeSpec: require('./merge-spec'),
within: require('./within'),
equalsShallow: require('./equals-shallow'),
filterMap: require('./filter-map'),
forEachSerialP: require('./for-each-serial-p'),
equalsAny: require('./equals-any'),
ensureStartsWith: require('./ensure-starts-with'),
propOrStrict: require('./prop-or-strict'),
defaultToStrict: require('./default-to-strict'),
trace: require('./trace'),
intersectAny: require('./intersect-any'),
replaceAll: require('./replace-all'),
mapIndexed: require('./map-indexed'),
jsonParseSafe: require('./json-parse-safe'),
mapFilter: require('./map-filter'),
testHarness: require('./test-harness'),
throttleTrailing: require('./throttle-trailing'),
list: require('./list'),
ensureEndsWith: require('./ensure-ends-with'),
mapParallelLimitP: require('./map-parallel-limit-p'),
isNotEmpty: require('./is-not-empty'),
debounce: require('./debounce'),
dotPath: require('./dot-path'),
nonePass: require('./none-pass'),
updateKeys: require('./update-keys'),
containsAny: require('./contains-any'),
count: require('./count'),
mapRejectNil: require('./map-reject-nil'),
noopAsync: require('./noop-async'),
upperCamelCase: require('./upper-camel-case'),
throttle: require('./throttle'),
timeoutP: require('./timeout-p'),
eqPaths: require('./eq-paths'),
throttleLeading: require('./throttle-leading'),
eqDotPaths: require('./eq-dot-paths'),
tap: require('./tap'),
mapSerialP: require('./map-serial-p'),
tryCatchSafe: require('./try-catch-safe'),
round: require('./round'),
mapP: require('./map-p'),
argsToObj: require('./args-to-obj'),
dotPathOr: require('./dot-path-or'),
updateKeysWith: require('./update-keys-with'),
allSettledP: require('./all-settled-p'),
isNotNil: require('./is-not-nil'),
sleep: require('./sleep'),
isNilOrEmpty: require('./is-nil-or-empty'),
rejectNilMap: require('./reject-nil-map'),
fpThrow: require('./fp-throw'),
resolveProps: require('./resolve-props'),
allEqual: require('./all-equal'),
defer: require('./defer'),
updateKeyPaths: require('./update-key-paths'),
isNot: require('./is-not')
};
module.exports.allEqual = require('./all-equal');
module.exports.allSettledP = require('./all-settled-p');
module.exports.argsToObj = require('./args-to-obj');
module.exports.clampPositive = require('./clamp-positive');
module.exports.containsAll = require('./contains-all');
module.exports.containsAny = require('./contains-any');
module.exports.count = require('./count');
module.exports.debounce = require('./debounce');
module.exports.defaultToStrict = require('./default-to-strict');
module.exports.defer = require('./defer');
module.exports.dotPath = require('./dot-path');
module.exports.dotPathOr = require('./dot-path-or');
module.exports.ensureArray = require('./ensure-array');
module.exports.ensureEndsWith = require('./ensure-ends-with');
module.exports.ensureStartsWith = require('./ensure-starts-with');
module.exports.eqDotPaths = require('./eq-dot-paths');
module.exports.eqDotPathsShallow = require('./eq-dot-paths-shallow');
module.exports.eqPaths = require('./eq-paths');
module.exports.equalsAny = require('./equals-any');
module.exports.equalsShallow = require('./equals-shallow');
module.exports.filterMap = require('./filter-map');
module.exports.forEachSerialP = require('./for-each-serial-p');
module.exports.format = require('./format');
module.exports.fpThrow = require('./fp-throw');
module.exports.intersectAny = require('./intersect-any');
module.exports.isNilOrEmpty = require('./is-nil-or-empty');
module.exports.isNot = require('./is-not');
module.exports.isNotEmpty = require('./is-not-empty');
module.exports.isNotNil = require('./is-not-nil');
module.exports.isPopulatedString = require('./is-populated-string');
module.exports.jsonParseSafe = require('./json-parse-safe');
module.exports.keyByWith = require('./key-by-with');
module.exports.list = require('./list');
module.exports.mapFilter = require('./map-filter');
module.exports.mapIndexed = require('./map-indexed');
module.exports.mapP = require('./map-p');
module.exports.mapParallelLimitP = require('./map-parallel-limit-p');
module.exports.mapRejectNil = require('./map-reject-nil');
module.exports.mapSerialP = require('./map-serial-p');
module.exports.mergeSpec = require('./merge-spec');
module.exports.mergeWithArrays = require('./merge-with-arrays');
module.exports.nonePass = require('./none-pass');
module.exports.noopAsync = require('./noop-async');
module.exports.propOrStrict = require('./prop-or-strict');
module.exports.rejectNilMap = require('./reject-nil-map');
module.exports.replaceAll = require('./replace-all');
module.exports.resolveProps = require('./resolve-props');
module.exports.round = require('./round');
module.exports.sleep = require('./sleep');
module.exports.stringify = require('./stringify');
module.exports.stringToBoolean = require('./string-to-boolean');
module.exports.tap = require('./tap');
module.exports.testCases = require('./test-cases');
module.exports.testHarness = require('./test-harness');
module.exports.testHarnessUnary = require('./test-harness-unary');
module.exports.throttle = require('./throttle');
module.exports.throttleLeading = require('./throttle-leading');
module.exports.throttleTrailing = require('./throttle-trailing');
module.exports.timeoutP = require('./timeout-p');
module.exports.trace = require('./trace');
module.exports.tryCatchSafe = require('./try-catch-safe');
module.exports.updateKeyPaths = require('./update-key-paths');
module.exports.updateKeys = require('./update-keys');
module.exports.updateKeysWith = require('./update-keys-with');
module.exports.upperCamelCase = require('./upper-camel-case');
module.exports.within = require('./within');

@@ -6,14 +6,256 @@ const r = require('ramda');

*/
module.exports = r.omit([
'count',
'flip',
'forEach',
'indexBy',
'split',
'tap',
'toLower',
'toString',
'toUpper',
'trim',
'isNotNil'
], r);
module.exports.F = r.F;
module.exports.T = r.T;
module.exports.__ = r.__;
module.exports.add = r.add;
module.exports.addIndex = r.addIndex;
module.exports.addIndexRight = r.addIndexRight;
module.exports.adjust = r.adjust;
module.exports.all = r.all;
module.exports.allPass = r.allPass;
module.exports.always = r.always;
module.exports.and = r.and;
module.exports.any = r.any;
module.exports.anyPass = r.anyPass;
module.exports.ap = r.ap;
module.exports.aperture = r.aperture;
module.exports.append = r.append;
module.exports.apply = r.apply;
module.exports.applySpec = r.applySpec;
module.exports.applyTo = r.applyTo;
module.exports.ascend = r.ascend;
module.exports.assoc = r.assoc;
module.exports.assocPath = r.assocPath;
module.exports.binary = r.binary;
module.exports.bind = r.bind;
module.exports.both = r.both;
module.exports.call = r.call;
module.exports.chain = r.chain;
module.exports.clamp = r.clamp;
module.exports.clone = r.clone;
module.exports.collectBy = r.collectBy;
module.exports.comparator = r.comparator;
module.exports.complement = r.complement;
module.exports.compose = r.compose;
module.exports.composeWith = r.composeWith;
module.exports.concat = r.concat;
module.exports.cond = r.cond;
module.exports.construct = r.construct;
module.exports.constructN = r.constructN;
module.exports.converge = r.converge;
module.exports.countBy = r.countBy;
module.exports.curry = r.curry;
module.exports.curryN = r.curryN;
module.exports.dec = r.dec;
module.exports.defaultTo = r.defaultTo;
module.exports.descend = r.descend;
module.exports.difference = r.difference;
module.exports.differenceWith = r.differenceWith;
module.exports.dissoc = r.dissoc;
module.exports.dissocPath = r.dissocPath;
module.exports.divide = r.divide;
module.exports.drop = r.drop;
module.exports.dropLast = r.dropLast;
module.exports.dropLastWhile = r.dropLastWhile;
module.exports.dropRepeats = r.dropRepeats;
module.exports.dropRepeatsBy = r.dropRepeatsBy;
module.exports.dropRepeatsWith = r.dropRepeatsWith;
module.exports.dropWhile = r.dropWhile;
module.exports.either = r.either;
module.exports.empty = r.empty;
module.exports.endsWith = r.endsWith;
module.exports.eqBy = r.eqBy;
module.exports.eqProps = r.eqProps;
module.exports.equals = r.equals;
module.exports.evolve = r.evolve;
module.exports.filter = r.filter;
module.exports.find = r.find;
module.exports.findIndex = r.findIndex;
module.exports.findLast = r.findLast;
module.exports.findLastIndex = r.findLastIndex;
module.exports.flatten = r.flatten;
module.exports.forEachObjIndexed = r.forEachObjIndexed;
module.exports.fromPairs = r.fromPairs;
module.exports.groupBy = r.groupBy;
module.exports.groupWith = r.groupWith;
module.exports.gt = r.gt;
module.exports.gte = r.gte;
module.exports.has = r.has;
module.exports.hasIn = r.hasIn;
module.exports.hasPath = r.hasPath;
module.exports.head = r.head;
module.exports.identical = r.identical;
module.exports.identity = r.identity;
module.exports.ifElse = r.ifElse;
module.exports.inc = r.inc;
module.exports.includes = r.includes;
module.exports.indexOf = r.indexOf;
module.exports.init = r.init;
module.exports.innerJoin = r.innerJoin;
module.exports.insert = r.insert;
module.exports.insertAll = r.insertAll;
module.exports.intersection = r.intersection;
module.exports.intersperse = r.intersperse;
module.exports.into = r.into;
module.exports.invert = r.invert;
module.exports.invertObj = r.invertObj;
module.exports.invoker = r.invoker;
module.exports.is = r.is;
module.exports.isEmpty = r.isEmpty;
module.exports.isNil = r.isNil;
module.exports.join = r.join;
module.exports.juxt = r.juxt;
module.exports.keys = r.keys;
module.exports.keysIn = r.keysIn;
module.exports.last = r.last;
module.exports.lastIndexOf = r.lastIndexOf;
module.exports.length = r.length;
module.exports.lens = r.lens;
module.exports.lensIndex = r.lensIndex;
module.exports.lensPath = r.lensPath;
module.exports.lensProp = r.lensProp;
module.exports.lift = r.lift;
module.exports.liftN = r.liftN;
module.exports.lt = r.lt;
module.exports.lte = r.lte;
module.exports.map = r.map;
module.exports.mapAccum = r.mapAccum;
module.exports.mapAccumRight = r.mapAccumRight;
module.exports.mapObjIndexed = r.mapObjIndexed;
module.exports.match = r.match;
module.exports.mathMod = r.mathMod;
module.exports.max = r.max;
module.exports.maxBy = r.maxBy;
module.exports.mean = r.mean;
module.exports.median = r.median;
module.exports.memoizeWith = r.memoizeWith;
module.exports.mergeAll = r.mergeAll;
module.exports.mergeDeepLeft = r.mergeDeepLeft;
module.exports.mergeDeepRight = r.mergeDeepRight;
module.exports.mergeDeepWith = r.mergeDeepWith;
module.exports.mergeDeepWithKey = r.mergeDeepWithKey;
module.exports.mergeLeft = r.mergeLeft;
module.exports.mergeRight = r.mergeRight;
module.exports.mergeWith = r.mergeWith;
module.exports.mergeWithKey = r.mergeWithKey;
module.exports.min = r.min;
module.exports.minBy = r.minBy;
module.exports.modify = r.modify;
module.exports.modifyPath = r.modifyPath;
module.exports.modulo = r.modulo;
module.exports.move = r.move;
module.exports.multiply = r.multiply;
module.exports.nAry = r.nAry;
module.exports.partialObject = r.partialObject;
module.exports.negate = r.negate;
module.exports.none = r.none;
module.exports.not = r.not;
module.exports.nth = r.nth;
module.exports.nthArg = r.nthArg;
module.exports.o = r.o;
module.exports.objOf = r.objOf;
module.exports.of = r.of;
module.exports.omit = r.omit;
module.exports.on = r.on;
module.exports.once = r.once;
module.exports.or = r.or;
module.exports.otherwise = r.otherwise;
module.exports.over = r.over;
module.exports.pair = r.pair;
module.exports.partial = r.partial;
module.exports.partialRight = r.partialRight;
module.exports.partition = r.partition;
module.exports.path = r.path;
module.exports.paths = r.paths;
module.exports.pathEq = r.pathEq;
module.exports.pathOr = r.pathOr;
module.exports.pathSatisfies = r.pathSatisfies;
module.exports.pick = r.pick;
module.exports.pickAll = r.pickAll;
module.exports.pickBy = r.pickBy;
module.exports.pipe = r.pipe;
module.exports.pipeWith = r.pipeWith;
module.exports.pluck = r.pluck;
module.exports.prepend = r.prepend;
module.exports.product = r.product;
module.exports.project = r.project;
module.exports.promap = r.promap;
module.exports.prop = r.prop;
module.exports.propEq = r.propEq;
module.exports.propIs = r.propIs;
module.exports.propOr = r.propOr;
module.exports.propSatisfies = r.propSatisfies;
module.exports.props = r.props;
module.exports.range = r.range;
module.exports.reduce = r.reduce;
module.exports.reduceBy = r.reduceBy;
module.exports.reduceRight = r.reduceRight;
module.exports.reduceWhile = r.reduceWhile;
module.exports.reduced = r.reduced;
module.exports.reject = r.reject;
module.exports.remove = r.remove;
module.exports.repeat = r.repeat;
module.exports.replace = r.replace;
module.exports.reverse = r.reverse;
module.exports.scan = r.scan;
module.exports.sequence = r.sequence;
module.exports.set = r.set;
module.exports.slice = r.slice;
module.exports.sort = r.sort;
module.exports.sortBy = r.sortBy;
module.exports.sortWith = r.sortWith;
module.exports.splitAt = r.splitAt;
module.exports.splitEvery = r.splitEvery;
module.exports.splitWhen = r.splitWhen;
module.exports.splitWhenever = r.splitWhenever;
module.exports.startsWith = r.startsWith;
module.exports.subtract = r.subtract;
module.exports.sum = r.sum;
module.exports.swap = r.swap;
module.exports.symmetricDifference = r.symmetricDifference;
module.exports.symmetricDifferenceWith = r.symmetricDifferenceWith;
module.exports.tail = r.tail;
module.exports.take = r.take;
module.exports.takeLast = r.takeLast;
module.exports.takeLastWhile = r.takeLastWhile;
module.exports.takeWhile = r.takeWhile;
module.exports.test = r.test;
module.exports.andThen = r.andThen;
module.exports.times = r.times;
module.exports.toPairs = r.toPairs;
module.exports.toPairsIn = r.toPairsIn;
module.exports.transduce = r.transduce;
module.exports.transpose = r.transpose;
module.exports.traverse = r.traverse;
module.exports.tryCatch = r.tryCatch;
module.exports.type = r.type;
module.exports.unapply = r.unapply;
module.exports.unary = r.unary;
module.exports.uncurryN = r.uncurryN;
module.exports.unfold = r.unfold;
module.exports.union = r.union;
module.exports.unionWith = r.unionWith;
module.exports.uniq = r.uniq;
module.exports.uniqBy = r.uniqBy;
module.exports.uniqWith = r.uniqWith;
module.exports.unless = r.unless;
module.exports.unnest = r.unnest;
module.exports.until = r.until;
module.exports.unwind = r.unwind;
module.exports.update = r.update;
module.exports.useWith = r.useWith;
module.exports.values = r.values;
module.exports.valuesIn = r.valuesIn;
module.exports.view = r.view;
module.exports.when = r.when;
module.exports.where = r.where;
module.exports.whereAny = r.whereAny;
module.exports.whereEq = r.whereEq;
module.exports.without = r.without;
module.exports.xor = r.xor;
module.exports.xprod = r.xprod;
module.exports.zip = r.zip;
module.exports.zipObj = r.zipObj;
module.exports.zipWith = r.zipWith;
module.exports.thunkify = r.thunkify;
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