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

@db-auto/utils

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@db-auto/utils - npm Package Compare versions

Comparing version 0.0.21 to 0.0.22

1

dist/src/safe.d.ts
import { NameAnd } from "./nameAnd";
export declare function safeArray<T>(ts: T | T[] | undefined): T[];
export declare function safeToString(t: any): string;
export declare function stringOrUndefinedAsString(s: string | undefined): string;

@@ -4,0 +5,0 @@ export declare function safeObject<T>(t: NameAnd<T> | undefined): NameAnd<T>;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.arrayOrUndefinedIfEmpty = exports.singleOrArrayOrUndefined = exports.toArray = exports.safeObject = exports.stringOrUndefinedAsString = exports.safeArray = void 0;
exports.arrayOrUndefinedIfEmpty = exports.singleOrArrayOrUndefined = exports.toArray = exports.safeObject = exports.stringOrUndefinedAsString = exports.safeToString = exports.safeArray = void 0;
function safeArray(ts) {

@@ -12,2 +12,6 @@ if (ts === undefined || ts === null)

exports.safeArray = safeArray;
function safeToString(t) {
return t === undefined || t === null ? '' : t.toString();
}
exports.safeToString = safeToString;
function stringOrUndefinedAsString(s) {

@@ -14,0 +18,0 @@ return s === undefined ? 'undefined' : s;

2

package.json
{
"name": "@db-auto/utils",
"description": "",
"version": "0.0.21",
"version": "0.0.22",
"main": "dist/index",

@@ -6,0 +6,0 @@ "types": "dist/index",

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