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

@kosko/common-utils

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kosko/common-utils - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

11

dist/index.d.ts
/**
* Returns true when type of value is `object` and is not `null`, `undefined` or
* Common utilities used in Kosko.
*
* @packageDocumentation
*/
/**
* Returns true when type of `value` is `object` and is not `null`, `undefined` or
* an array.

@@ -9,3 +14,3 @@ *

/**
* Transforms input into an array, or leave it as-is if input is already an array.
* Transforms `input` into an array, or leave it as-is if `input` is already an array.
*

@@ -16,3 +21,3 @@ * @public

/**
* Returns `code` in an error-like object.
* Returns `code` of an error-like object.
*

@@ -19,0 +24,0 @@ * @public

"use strict";
/**
* Common utilities used in Kosko.
*
* @packageDocumentation
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.getErrorCode = exports.toArray = exports.isRecord = void 0;
/**
* Returns true when type of value is `object` and is not `null`, `undefined` or
* Returns true when type of `value` is `object` and is not `null`, `undefined` or
* an array.

@@ -15,3 +20,3 @@ *

/**
* Transforms input into an array, or leave it as-is if input is already an array.
* Transforms `input` into an array, or leave it as-is if `input` is already an array.
*

@@ -25,3 +30,3 @@ * @public

/**
* Returns `code` in an error-like object.
* Returns `code` of an error-like object.
*

@@ -28,0 +33,0 @@ * @public

{
"name": "@kosko/common-utils",
"version": "0.1.0",
"version": "0.1.1",
"description": "Common utilities used in Kosko.",

@@ -5,0 +5,0 @@ "homepage": "https://kosko.dev",

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