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

viper_core

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

viper_core - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

dist/higher-order/index.d.ts

3

dist/index.d.ts
import { Test } from "./test.component";
export { Test };
import { Test2 } from "./test2.component";
export { Test, Test2 };

@@ -184,7 +184,21 @@ import { createElement, Component } from 'react';

var component = function (props) {
return (createElement("div", { className: props.styling.getStyle(styles, "test") }, "Hallo, dit is een test!"));
return (createElement("div", null,
createElement("div", { className: props.styling.getStyle(styles, "test") }, "Hallo, dit is een test!"),
createElement("div", null,
"De extra prop: ",
props.extra)));
};
var Test = withStyling(component);
export { Test };
var css$1 = ".test2-component-module_test__mepuH {\n color: green;\n}\n";
var styles$1 = {"test":"test2-component-module_test__mepuH"};
styleInject(css$1);
var Test2 = function (props) {
return (createElement("div", { className: styles$1.test },
"Test 2 component, text: ",
props.text));
};
export { Test, Test2 };
//# sourceMappingURL=index.es.js.map

@@ -188,7 +188,22 @@ 'use strict';

var component = function (props) {
return (React.createElement("div", { className: props.styling.getStyle(styles, "test") }, "Hallo, dit is een test!"));
return (React.createElement("div", null,
React.createElement("div", { className: props.styling.getStyle(styles, "test") }, "Hallo, dit is een test!"),
React.createElement("div", null,
"De extra prop: ",
props.extra)));
};
var Test = withStyling(component);
var css$1 = ".test2-component-module_test__mepuH {\n color: green;\n}\n";
var styles$1 = {"test":"test2-component-module_test__mepuH"};
styleInject(css$1);
var Test2 = function (props) {
return (React.createElement("div", { className: styles$1.test },
"Test 2 component, text: ",
props.text));
};
exports.Test = Test;
exports.Test2 = Test2;
//# sourceMappingURL=index.js.map

@@ -1,5 +0,22 @@

/// <reference types="react" />
export interface ITestProps {
import * as React from "react";
import { IInjectedStylingProps } from "@app/higher-order";
export interface ITestProps extends IInjectedStylingProps {
extra: string;
}
declare const Test: () => JSX.Element;
declare const Test: {
new (props: any): {
render(): JSX.Element;
context: any;
setState<K extends "styleUtil">(state: import("./higher-order").IWithStylingState | ((prevState: Readonly<import("./higher-order").IWithStylingState>, props: Readonly<Pick<ITestProps, "extra"> & import("./higher-order").IWithStylingProps>) => import("./higher-order").IWithStylingState | Pick<import("./higher-order").IWithStylingState, K> | null) | Pick<import("./higher-order").IWithStylingState, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<Pick<ITestProps, "extra"> & import("./higher-order").IWithStylingProps> & Readonly<{
children?: React.ReactNode;
}>;
state: Readonly<import("./higher-order").IWithStylingState>;
refs: {
[key: string]: React.ReactInstance;
};
};
contextType?: React.Context<any> | undefined;
};
export { Test };
{
"name": "viper_core",
"version": "1.0.3",
"version": "1.0.4",
"description": "",

@@ -5,0 +5,0 @@ "author": "webbio",

Sorry, the diff of this file is not supported yet

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