Socket
Socket
Sign inDemoInstall

ow

Package Overview
Dependencies
Maintainers
2
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ow - npm Package Compare versions

Comparing version 0.28.1 to 0.28.2

dist/typed-array.d.ts

6

dist/index.js
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {

@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k;

4

dist/predicates.d.ts
/// <reference types="node" />
import { TypedArray } from 'type-fest';
import { TypedArray } from './typed-array.js';
import { StringPredicate } from './predicates/string';

@@ -167,4 +167,4 @@ import { NumberPredicate } from './predicates/number';

}
declare const _default: <T>(object: T, options?: PredicateOptions | undefined) => T & Predicates;
declare const _default: <T>(object: T, options?: PredicateOptions) => T & Predicates;
export default _default;
export { StringPredicate, NumberPredicate, BigIntPredicate, BooleanPredicate, ArrayPredicate, ObjectPredicate, DatePredicate, ErrorPredicate, MapPredicate, WeakMapPredicate, SetPredicate, WeakSetPredicate, TypedArrayPredicate, ArrayBufferPredicate, DataViewPredicate, AnyPredicate, Shape };

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

import { TypedArray } from 'type-fest';
import { TypedArray } from '../typed-array.js';
import { Predicate } from './predicate';

@@ -3,0 +3,0 @@ export declare class TypedArrayPredicate<T extends TypedArray> extends Predicate<T> {

@@ -7,3 +7,2 @@ /**

}
declare const _default: <T>(source: CollectionLike<T>, items: readonly T[], maxValues?: number) => true | T[];
/**

@@ -18,2 +17,3 @@ Retrieve the missing values in a collection based on an array of items.

*/
declare const _default: <T>(source: CollectionLike<T>, items: readonly T[], maxValues?: number) => true | T[];
export default _default;

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

declare const _default: (string: string | undefined) => string | boolean | undefined;
/**

@@ -7,2 +6,3 @@ Test if the string is a valid JavaScript identifier.

*/
declare const _default: (string: string | undefined) => string | boolean | undefined;
export default _default;
import { Predicate } from '../predicates/predicate';
declare const _default: (object: unknown, predicate: Predicate) => boolean | string;
/**

@@ -10,2 +9,3 @@ Test all the values in the object against a provided predicate.

*/
declare const _default: (object: unknown, predicate: Predicate) => boolean | string;
export default _default;
import { BasePredicate } from '../predicates/base-predicate';
declare const _default: <T>(source: IterableIterator<T> | Set<T> | T[], name: string, predicate: BasePredicate<T>) => boolean | string;
/**

@@ -11,2 +10,3 @@ Test all the values in the collection against a provided predicate.

*/
declare const _default: <T>(source: IterableIterator<T> | Set<T> | T[], name: string, predicate: BasePredicate<T>) => boolean | string;
export default _default;
{
"name": "ow",
"version": "0.28.1",
"version": "0.28.2",
"description": "Function argument validation for humans",

@@ -20,3 +20,3 @@ "license": "MIT",

"scripts": {
"test": "xo && nyc ava",
"test": "xo && ava",
"docs": "typedoc source/index.ts",

@@ -57,3 +57,2 @@ "build": "del-cli dist && tsc",

"lodash.isequal": "^4.5.0",
"type-fest": "^2.3.4",
"vali-date": "^1.0.0"

@@ -60,0 +59,0 @@ },

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