🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

react-script-tag-18

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-script-tag-18 - npm Package Compare versions

Comparing version

to
1.0.212

/// <reference types="node" />
import React from 'react';
export type ScriptLoaderProps = {
delayMs?: number;
onCreate?: () => void;
onError?: (event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error) => void;
onSuccess?: () => void;
onLoad?: () => void;
src: string;
[key: string]: any;
};
export default class ScriptLoader extends React.Component<ScriptLoaderProps, {
declare class ScriptLoader extends React.Component<ScriptLoaderProps, {
delayMs: number;

@@ -24,1 +15,11 @@ src: string;

}
export declare type ScriptLoaderProps = {
delayMs?: number;
onCreate?: () => void;
onError?: (event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error) => void;
onSuccess?: () => void;
onLoad?: () => void;
src: string;
[key: string]: any;
};
export default ScriptLoader;
{
"name": "react-script-tag-18",
"author": "Jose Santos <jose@gumgum.com>",
"version": "1.0.134",
"version": "1.0.212",
"description": "React Script Tag 18",
"license": "MIT",
"main": "dist/main.js",
"main": "dist/index.js",
"types": "dist/index.d.ts",

@@ -13,3 +13,4 @@ "source": "src/index.tsx",

"start": "rollup -c -w",
"build": "webpack --mode=production --node-env=production ",
"build" : "tsc",
"build:pro": "webpack --mode=production --node-env=production ",
"build:dev": "webpack --mode=development",

@@ -16,0 +17,0 @@ "watch": "webpack --watch"

@@ -11,6 +11,7 @@ {

"isolatedModules": true,
"declarationDir": "dist",
"noEmit": false,
"allowJs": true,
"esModuleInterop": true,
"outDir": "dist",
"declarationDir": "dist",
},

@@ -17,0 +18,0 @@ "files": ["src/index.tsx"]

{
"compilerOptions": {
"target": "ESNext",
"lib": [
"dom",
"dom.iterable",
"es2016"
],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "commonjs",
"moduleResolution": "node",
"resolveJsonModule": true,
"declarationDirectory": "types",
"isolatedModules": true,
"noEmit": true,
"emitDeclarationOnly": true,
"declaration": true,
"noImplicitAny": true,
"jsx": "react-jsx"
},
"include": [
"./src/*.tsx"
],
"files": [
"./src/index.tsx"
]
}
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "commonjs",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react",
"typeRoots": [
"node_modules/@types" ]
},
"include": [
"src"
]
}