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

@trayio/commons

Package Overview
Dependencies
Maintainers
4
Versions
178
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trayio/commons - npm Package Compare versions

Comparing version 4.52.0 to 4.52.1

4

dist/file/File.d.ts

@@ -35,2 +35,6 @@ /// <reference types="node" />

}
export interface FileContentTypeCheckerInterface {
isFileContentType(value: unknown): value is FileContentType;
}
export declare const FileContentTypeChecker: FileContentTypeCheckerInterface;
export type FileMetadata = {

@@ -37,0 +41,0 @@ name: string;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.FileDescriptor = exports.fileDescriptorDescriptor = exports.fileMetadataDescriptor = exports.FileContentType = void 0;
exports.FileDescriptor = exports.fileDescriptorDescriptor = exports.fileMetadataDescriptor = exports.FileContentTypeChecker = exports.FileContentType = void 0;
const t = __importStar(require("io-ts"));

@@ -61,2 +61,13 @@ var FileContentType;

})(FileContentType || (exports.FileContentType = FileContentType = {}));
exports.FileContentTypeChecker = {
isFileContentType(value) {
if (typeof value !== 'string') {
return false;
}
const lowerCaseValue = value.toLowerCase();
return Object.values(FileContentType)
.map((contentType) => contentType.toLowerCase())
.includes(lowerCaseValue);
},
};
const contentTypeDescriptor = t.union([

@@ -63,0 +74,0 @@ t.literal(FileContentType.Text),

2

package.json
{
"name": "@trayio/commons",
"version": "4.52.0",
"version": "4.52.1",
"description": "Extensions to the standard/core libraries and basic features",

@@ -5,0 +5,0 @@ "exports": {

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