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

@fgv/ts-utils

Package Overview
Dependencies
Maintainers
1
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fgv/ts-utils - npm Package Compare versions

Comparing version 1.3.1 to 1.4.0

normalize.d.ts

24

converters.d.ts

@@ -162,3 +162,3 @@ import { BaseConverter, Converter, ConverterTraits } from './converter';

* @remarks
* Delimeter may also be supplied as context at conversion time.
* Delimiter may also be supplied as context at conversion time.
* @param delimiter - The delimiter at which to split.

@@ -203,3 +203,3 @@ * @returns A new {@link Converter} returning `string[]`.

* @param converters - An ordered list of {@link Converter | converters} to be considered.
* @param onError - Specifies treatment of unconvertable elements.
* @param onError - Specifies treatment of unconvertible elements.
* @returns A new {@link Converter} which yields a value from the union of the types returned

@@ -216,3 +216,3 @@ * by the wrapped converters.

* @param converter - {@link Converter} used to convert each item in the array.
* @param ignoreErrors - Specifies treatment of unconvertable elements.
* @param ignoreErrors - Specifies treatment of unconvertible elements.
* @returns A {@link Converter} which returns an array of `<T>`.

@@ -228,3 +228,3 @@ * @public

* @param converter - {@link Converter} used to convert each item in the array
* @param ignoreErrors - Specifies treatment of unconvertable elements
* @param ignoreErrors - Specifies treatment of unconvertible elements
* @beta

@@ -371,3 +371,3 @@ */

* @remarks
* The resulting {@link Converter} returns {@link Success} with the converted value if the element exsist
* The resulting {@link Converter} returns {@link Success} with the converted value if the element exists
* in the supplied array and can be converted. Returns {@link Success} with value `undefined` if the parameter

@@ -386,3 +386,3 @@ * is an array but the index is out of range. Returns {@link Failure} with a message if the supplied parameter

* @remarks
* The resulting {@link Converter} returns {@link Success} with the converted value of the correpsonding
* The resulting {@link Converter} returns {@link Success} with the converted value of the corresponding
* object property if the field exists and can be converted. Returns {@link Failure} with an error message

@@ -399,5 +399,5 @@ * otherwise.

* @remarks
* The resulting {@link Converter} returns {@link Success} with the converted value of the correpsonding
* The resulting {@link Converter} returns {@link Success} with the converted value of the corresponding
* object property if the field exists and can be converted. Returns {@link Success} with value `undefined`
* if the supplied parametr is an object but the named field is not present. Returns {@link Failure} with
* if the supplied parameter is an object but the named field is not present. Returns {@link Failure} with
* an error message otherwise.

@@ -500,6 +500,6 @@ * @param name - The name of the field to be extracted.

* without changing shape, given a {@link Converters.FieldConverters | FieldConverters<T>} and an optional
* {@link Converters.ObjectConverterOptions | ObjectConverterOptions<T>} to further refine conversion beavior.
* {@link Converters.ObjectConverterOptions | ObjectConverterOptions<T>} to further refine conversion behavior.
* @remarks
* By default, if all of the requested fields exist and can be converted, returns {@link Success}
* with a new object that contains the converted values under the original key names. If any requried properties
* with a new object that contains the converted values under the original key names. If any required properties
* do not exist or cannot be converted, the entire conversion fails, returning {@link Failure} with additional

@@ -525,3 +525,3 @@ * error information.

* By default, if all of the requested fields exist and can be converted, returns {@link Success}
* with a new object that contains the converted values under the original key names. If any requried properties
* with a new object that contains the converted values under the original key names. If any required properties
* do not exist or cannot be converted, the entire conversion fails, returning {@link Failure} with additional

@@ -592,3 +592,3 @@ * error information.

/**
* Helper to create a {@link Converter} whhich converts a discriminated object without changing shape.
* Helper to create a {@link Converter} which converts a discriminated object without changing shape.
* @remarks

@@ -595,0 +595,0 @@ * Takes the name of the discriminator property and a

@@ -8,2 +8,3 @@ export * from './brand';

export * from './utils';
export { Normalizer } from './normalize';
import * as Converters from './converters';

@@ -10,0 +11,0 @@ import * as Csv from './csvHelpers';

@@ -29,3 +29,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.Validation = exports.Hash = exports.Csv = exports.Converters = void 0;
exports.Validation = exports.Hash = exports.Csv = exports.Converters = exports.Normalizer = void 0;
/*

@@ -59,2 +59,4 @@ * Copyright (c) 2020 Erik Fortune

__exportStar(require("./utils"), exports);
var normalize_1 = require("./normalize");
Object.defineProperty(exports, "Normalizer", { enumerable: true, get: function () { return normalize_1.Normalizer; } });
const Converters = __importStar(require("./converters"));

@@ -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ZGF0aW9uIH07XG4iXX0=
{
"name": "@fgv/ts-utils",
"version": "1.3.1",
"version": "1.4.0",
"description": "Assorted Typescript Utilities",

@@ -5,0 +5,0 @@ "main": "index.js",

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

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