🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

jxt-react-library

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jxt-react-library - npm Package Compare versions

Comparing version
1.0.3
to
1.0.4
+35
-1
lib/bundle.js

@@ -11,6 +11,40 @@ 'use strict';

function styleInject(css, ref) {
if (ref === void 0) ref = {};
var insertAt = ref.insertAt;
if (!css || typeof document === 'undefined') {
return;
}
var head = document.head || document.getElementsByTagName('head')[0];
var style = document.createElement('style');
style.type = 'text/css';
if (insertAt === 'top') {
if (head.firstChild) {
head.insertBefore(style, head.firstChild);
} else {
head.appendChild(style);
}
} else {
head.appendChild(style);
}
if (style.styleSheet) {
style.styleSheet.cssText = css;
} else {
style.appendChild(document.createTextNode(css));
}
}
var css_248z = ".container {\n color: red;\n}";
styleInject(css_248z);
function Switch() {
return /*#__PURE__*/React__default["default"].createElement("h1", null, "Switch");
return /*#__PURE__*/React__default["default"].createElement("h1", {
className: "container"
}, "Switch");
}
exports.Switch = Switch;
+7
-3
{
"name": "jxt-react-library",
"version": "1.0.3",
"version": "1.0.4",
"main": "lib/bundle.js",
"author": "gengyudongzzu",
"description": "a simple javascript lib",
"keywords": ["test javascript lib"],
"keywords": [
"test javascript lib"
],
"license": "MIT",

@@ -17,5 +19,7 @@ "scripts": {

"@babel/preset-react": "^7.14.5",
"postcss": "^8.3.11",
"rollup": "^2.58.0",
"rollup-plugin-babel": "^4.4.0"
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-postcss": "^4.0.1"
}
}
import babel from 'rollup-plugin-babel';
import postcss from 'rollup-plugin-postcss';

@@ -9,4 +10,4 @@ export default {

},
plugins: [babel()],
plugins: [babel(), postcss()],
external: ['react']
}