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

nis-media-uploader

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nis-media-uploader - npm Package Compare versions

Comparing version 1.0.1 to 1.0.13

dist/index.js

16

package.json
{
"name": "nis-media-uploader",
"version": "1.0.1",
"version": "1.0.13",
"description": "No Input Signal Media Uploader",
"license": "MIT",
"main": "./dist/index.js",
"types": "./src/index.d.ts",
"module": "./dist/index.js",
"files": [
"dist/",
"src/index.d.ts"
"src/"
],

@@ -61,3 +64,10 @@ "scripts": {

"uuid": "^9.0.1"
},
"repository": {
"type": "git",
"url": "git@gitlab.com:no-input-signal/nis-react-uploader.git"
},
"peerDependencies": {
"react": ">=18.0.0"
}
}
}

48

src/index.d.ts

@@ -0,1 +1,4 @@

import { initial } from 'lodash';
import * as React from 'react';
declare module '*.css';

@@ -6,16 +9,33 @@ declare module '*.png';

export interface Media {
originalName?: string;
id?: string;
mime: string;
alt?: null;
caption?: null;
description?: null;
filename: string;
uri: string;
url: string;
filesize: string;
created_at?: Date;
updated_at?: Date;
[key: string]: any;
declare module 'nis-media-uploader' {
// Declare the props that your wrapper component accepts
interface Media {
originalName?: string;
id?: string;
mime: string;
alt?: null;
caption?: null;
description?: null;
filename: string;
uri: string;
url: string;
filesize: string;
created_at?: Date;
updated_at?: Date;
[key: string]: any;
}
interface MyFunctionalComponentWrapperProps {
initialMedia?: Media[];
callback: (media: Media[]) => void;
}
// Define the functional component and its prop types
const Wrapper: React.FC<MyFunctionalComponentWrapperProps>;
// Export other types or components as needed
}

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