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

@trayio/commons

Package Overview
Dependencies
Maintainers
0
Versions
179
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.45.0 to 4.46.0

9

dist/file/File.d.ts

@@ -17,2 +17,11 @@ /// <reference types="node" />

};
export type FileReference = {
_tag: 'FileReference';
key: string;
};
export interface FileReferenceInterface {
fromUnknown(value: unknown): value is FileReference;
fromFile(file: File): FileReference;
}
export declare const FileReference: FileReferenceInterface;
export type SharedUrl = {

@@ -19,0 +28,0 @@ url: string;

18

dist/file/File.js

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

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

@@ -33,1 +33,17 @@ exports.fileMetadataDescriptor = t.partial({

});
exports.FileReference = {
fromUnknown(value) {
return (typeof value === 'object' &&
value !== null &&
'_tag' in value &&
value._tag === 'FileReference' &&
'key' in value &&
typeof value.key === 'string');
},
fromFile(file) {
return {
_tag: 'FileReference',
key: file.key,
};
},
};

2

package.json
{
"name": "@trayio/commons",
"version": "4.45.0",
"version": "4.46.0",
"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