New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

flint-tools

Package Overview
Dependencies
Maintainers
2
Versions
310
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flint-tools - npm Package Compare versions

Comparing version 1.0.94 to 1.0.95

256

build/_/tools.js

@@ -6,3 +6,4 @@ function flintRun_tools(node, opts, cb) {

(function(Flint) {
!function() { return Flint.file('/errors.js', function(exports) {'use strict';var flintAddedLines = 1;
!function() { return Flint.file('/errors.js', function(exports) { "use strict";
var flintAddedLines = 1;
var tools = window._DT;

@@ -64,7 +65,7 @@ var split = function split(s, i) {return [s.substring(0, i), s.substring(i, i + 1), s.substring(i + 1)];};

Flint.view("Errors", "-936275608", function (view, on) {
var error = null;
var compileError = null;
var runtimeError = null;
var errDelay = null;
Flint.view("Errors", "1387457996", function (view, on) {
var error = view.get('error', null);
var compileError = view.get('compileError', null);
var runtimeError = view.get('runtimeError', null);
var errDelay = view.get('errDelay', null);

@@ -116,3 +117,3 @@ /* only set error if there is an error,

view.update(view._render = function () {return view.el(39, "Flint.ErrorsWrapper", {view: view}, view.el(40, "ErrorMessage", {
view.render = function () {return view.el(0, "Flint.ErrorsWrapper", {view: view}, view.el(1, "ErrorMessage", {
error: error,

@@ -123,12 +124,11 @@ runtime: runtimeError,

);});
view.styles.$div = function(_index) { return {
);};
view.styles._static["$div"] = {
position: 'absolute',
top: 0, left: 0,
width: '100%' }};});
width: '100%' };});
/* end view: Errors */;
Flint.view("ErrorMessage", "320024500", function (view, on) {
Flint.view("ErrorMessage", "-1252455404", function (view, on) {
var last = function last(arr) {return arr[arr.length - 1];};

@@ -141,4 +141,4 @@ var fileName = function fileName(url) {return url && last(url.split('/'));};

var open = false;
var line = getLine(view.props.error);
var open = view.get('open', false);
var line = view.get('line', getLine(view.props.error));

@@ -149,4 +149,4 @@ on('props', function () {

view.update(view._render = function () {return view.el(41, "Flint.ErrorMessageWrapper", {view: view}, view.props.error && view.el(42, "inner", {if: view.props.error},
view.el(43, "where", null,
view.render = function () {return view.el(2, "Flint.ErrorMessageWrapper", {view: view}, view.props.error && view.el(3, "inner", {if: view.props.error},
view.el(4, "where", null,
fileName(view.props.error.file || view.props.error.fileName),

@@ -156,8 +156,8 @@ line ? ' line ' + (line - flintAddedLines) : ''

' ',
view.el(44, "errorTitle", null,
view.el(5, "errorTitle", null,
view.props.error.niceMessage || view.props.error.message,
view.props.error.niceStack &&
view.el(45, "niceStack", null,
view.el(6, "niceStack", null,
view.props.error.niceStack[0],
view.el(46, "errCol", null, view.props.error.niceStack[1]),
view.el(7, "errCol", null, view.props.error.niceStack[1]),
view.props.error.niceStack[2]

@@ -169,13 +169,13 @@ )

);});
var red = '#C51E19';
);};
var red = '#C51E19';view.styles._static["$"] = {
view.styles.$ = function(_index) { return {
background: '#fff',
borderTop: '1px solid #ccc',
borderBottom: '4px solid ' + red,
position: 'fixed',
left: 0,
height: open ? openHeight : 'auto',
bottom: view.props.error ? devHeight : devHeight - closedHeight,
transition: 'all 300ms ease-in',

@@ -190,45 +190,45 @@ right: 0,

zIndex: 2147483647,
boxShadow: '0 -6px 12px rgba(0,0,0,0.06)' }};
boxShadow: '0 -6px 12px rgba(0,0,0,0.06)' };view.styles["$"] = function (_index) {return { borderBottom: '4px solid ' + red, height: open ? openHeight : 'auto', bottom: view.props.error ? devHeight : devHeight - closedHeight };};
view.styles.$inner = function(_index) { return {
display: 'block' }};
view.styles._static["$inner"] = {
display: 'block' };view.styles._static["$where"] = {
view.styles.$where = function(_index) { return {
display: 'inline-block',
fontSize: 15,
pointerEvents: 'all',
fontWeight: 'bold',
color: red }};
fontWeight: 'bold' };view.styles["$where"] = function (_index) {return {
color: red };};
view.styles.$errorTitle = function(_index) { return {
display: 'inline' }};
view.styles._static["$errorTitle"] = {
display: 'inline' };
view.styles.$msg = function(_index) { return {
view.styles._static["$msg"] = {
display: 'inline-block',
fontSize: 16,
fontWeight: 'bold',
pointerEvents: 'all' }};
pointerEvents: 'all' };view.styles._static["$niceStack"] = {
view.styles.$niceStack = function(_index) { return {
opacity: 0.65,
display: 'inline',
fontFamily: 'Meslo, Menlo, Monaco, monospace',
fontSize: 14,
padding: [0, 5] }};
fontSize: 14 };view.styles["$niceStack"] = function (_index) {return {
padding: [0, 5] };};view.styles._static["$errCol"] = {
view.styles.$errCol = function(_index) { return {
display: 'inline',
background: 'red',
borderBottom: '2px solid red',
marginBottom: -2,
color: 'white' }};
color: 'white' };view.styles["$errCol"] = function (_index) {return { marginBottom: -2 };};
view.styles.$stack = function(_index) { return {
view.styles._static["$stack"] = {
fontFamily: 'monospace',

@@ -238,44 +238,42 @@ fontSize: 14,

whiteSpace: 'nowrap',
maxHeight: 200 }};
maxHeight: 200 };
view.styles.$line = function(_index) { return {
view.styles._static["$line"] = {
whiteSpace: 'pre',
pointerEvents: 'all' }};
pointerEvents: 'all' };
view.styles.$boldline = function(_index) { return {
view.styles._static["$boldline"] = {
whiteSpace: 'pre',
pointerEvents: 'all',
fontWeight: 'bold' }};});
fontWeight: 'bold' };});
/* end view: ErrorMessage */;
Flint.view("ErrorIcon", "1341285321", function (view, on) {
view.update(view._render = function () {return view.el(47, "Flint.ErrorIconWrapper", {view: view}, view.el(48, "svg", {viewBox: "0 0 27.963 27.963"},
view.el(49, "path", {d: "M13.983,0C6.261,0,0.001,6.259,0.001,13.979c0,7.724,6.26,13.984,13.982,13.984s13.98-6.261,13.98-13.984\\n C27.963,6.259,21.705,0,13.983,0z M13.983,26.531c-6.933,0-12.55-5.62-12.55-12.553c0-6.93,5.617-12.548,12.55-12.548\\n c6.931,0,12.549,5.618,12.549,12.548C26.531,20.911,20.913,26.531,13.983,26.531z"}),
Flint.view("ErrorIcon", "-1830193577", function (view, on) {
view.render = function () {return view.el(8, "Flint.ErrorIconWrapper", {view: view}, view.el(9, "svg", {viewBox: "0 0 27.963 27.963"},
view.el(10, "path", {d: "M13.983,0C6.261,0,0.001,6.259,0.001,13.979c0,7.724,6.26,13.984,13.982,13.984s13.98-6.261,13.98-13.984\\n C27.963,6.259,21.705,0,13.983,0z M13.983,26.531c-6.933,0-12.55-5.62-12.55-12.553c0-6.93,5.617-12.548,12.55-12.548\\n c6.931,0,12.549,5.618,12.549,12.548C26.531,20.911,20.913,26.531,13.983,26.531z"}),
view.el(50, "polygon", {points: "15.579,17.158 16.191,4.579 11.804,4.579 12.414,17.158"}),
view.el(51, "path", {d: "M13.998,18.546c-1.471,0-2.5,1.029-2.5,2.526c0,1.443,0.999,2.528,2.444,2.528h0.056c1.499,0,2.469-1.085,2.469-2.528\\n C16.441,19.575,15.468,18.546,13.998,18.546z"})
view.el(11, "polygon", {points: "15.579,17.158 16.191,4.579 11.804,4.579 12.414,17.158"}),
view.el(12, "path", {d: "M13.998,18.546c-1.471,0-2.5,1.029-2.5,2.526c0,1.443,0.999,2.528,2.444,2.528h0.056c1.499,0,2.469-1.085,2.469-2.528\\n C16.441,19.575,15.468,18.546,13.998,18.546z"})
)
);});
view.styles.$svg = function(_index) { return {
);};view.styles._static["$svg"] = {
width: 19,
fill: 'red',
margin: -4,
marginLeft: 3,
marginRight: 6,
opacity: 0.9 }};});
opacity: 0.9 };view.styles["$svg"] = function (_index) {return { margin: -4 };};}); }) }();
!function() { return Flint.file('/main.js', function(exports) { "use strict";
Flint.view("Main", "-512700846", function (view, on) {
view.render = function () {return view.el(13, "Flint.MainWrapper", {view: view}, view.el(14, "Errors", null),
view.el(15, "Installer", null)
/* end view: ErrorIcon */;;return exports }) }();
!function() { return Flint.file('/main.js', function(exports) {"use strict";Flint.view("Main", "1755745248", function (view, on) {
view.update(view._render = function () {return view.el(52, "Flint.MainWrapper", {view: view}, view.el(53, "Errors", null),
view.el(54, "Installer", null)
);});
view.styles.$ = function(_index) { return {
);};
view.styles._static["$"] = {
position: 'fixed',

@@ -285,18 +283,17 @@ pointerEvents: 'none',

right: 0, bottom: 0,
zIndex: 2147483647 }};});
/* end view: Main */;;return exports }) }();
!function() { return Flint.file('/modal.js', function(exports) {"use strict";Flint.view("Modal", "-1472366128", function (view, on) {
view.update(view._render = function () {return view.el(55, "Flint.ModalWrapper", {view: view}, view.el(56, "modal", null,
view.el(57, "close", {onClick: view.props.onClose}, "X"),
view.props.title && view.el(58, "title", {if: view.props.title}, view.props.title),
view.el(59, "message", null, view.props.children)
zIndex: 2147483647 };}); }) }();
!function() { return Flint.file('/modal.js', function(exports) { "use strict";
Flint.view("Modal", "-1897481146", function (view, on) {
view.render = function () {return view.el(16, "Flint.ModalWrapper", {view: view}, view.el(17, "modal", null,
view.el(18, "close", {onClick: view.props.onClose}, "X"),
view.props.title && view.el(19, "title", {if: view.props.title}, view.props.title),
view.el(20, "message", null, view.props.children)
)
);});
view.styles.$ = function(_index) { return {
);};view.styles._static["$"] = {
position: 'absolute',
top: view.props.open ? 20 : -100,
left: 20,
padding: [10, 10],
background: '#f9f9f9',

@@ -309,16 +306,16 @@ border: '1px solid #ddd',

textAlign: 'center',
pointerEvents: 'auto' }};
pointerEvents: 'auto' };view.styles["$"] = function (_index) {return { top: view.props.open ? 20 : -100, padding: [10, 10] };};view.styles._static["$title"] = {
view.styles.$title = function(_index) { return {
color: '#C43D2D',
fontWeight: 'bold',
margin: [-4, 20, 0] }};
fontWeight: 'bold' };view.styles["$title"] = function (_index) {return {
margin: [-4, 20, 0] };};
view.styles.$message = function(_index) { return {
fontFamily: "Helvetica Nueue, Helvetica, Arial, sans-serif" }};
view.styles._static["$message"] = {
fontFamily: "Helvetica Nueue, Helvetica, Arial, sans-serif" };
view.styles.$close = function(_index) { return {
view.styles._static["$close"] = {
position: 'absolute',

@@ -337,14 +334,13 @@ top: 3,

justifyContent: 'center',
cursor: 'pointer' }};});
cursor: 'pointer' };}); }) }();
!function() { return Flint.file('/npm/installer.js', function(exports) { "use strict";
var tools = window._DT;
/* end view: Modal */;;return exports }) }();
!function() { return Flint.file('/npm/installer.js', function(exports) {"use strict";var tools = window._DT;
Flint.view("Installer", "-1657723015", function (view, on) {
var version = view.get("version", '');
var versions = view.get("versions", []);
var name = view.get("name", '');
var error = view.get("error", '');
var state = view.get("state", 0);
Flint.view("Installer", "2126317651", function (view, on) {
var version = '';
var versions = [];
var name = '';
var error = '';
var state = 0;
tools.on('package:install', function () {

@@ -394,3 +390,3 @@ view.update(state = 1);

case 3:return error;break;
case 4:return view.el(60, "Versions", {
case 4:return view.el(21, "Versions", {
versions: versions,

@@ -402,73 +398,69 @@ onSelect: selectVersion});

view.update(view._render = function () {return view.el(61, "Flint.InstallerWrapper", {view: view}, view.el(62, "Modal", {
view.render = function () {return view.el(22, "Flint.InstallerWrapper", {view: view}, view.el(23, "Modal", {
open: state > 0,
onClose: closeModal,
title: title(state)},
false && state < 2 && view.el(63, "InstallerLoading", {if: false && state < 2}),
false && state < 2 && view.el(24, "InstallerLoading", {if: false && state < 2}),
body(state)
)
);});});
/* end view: Installer */;
);};});
Flint.view("InstallerLoading", "-174407452", function (view, on) {
view.update(view._render = function () {return view.el(64, "Flint.InstallerLoadingWrapper", {view: view}, view.el(65, "svg", {viewBox: "0 14 32 18", width: "32", height: "4", fill: "#f20", preserveAspectRatio: "none"},
view.el(66, "path", {className: "first", opacity: "0.8", transform: "translate(0 0)", d: "M2 14 V18 H6 V14z"},
view.el(67, "animateTransform", {attributeName: "transform", type: "translate", values: "0 0; 24 0; 0 0", dur: "2s", begin: "0", repeatCount: "indefinite", keySplines: "0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8", calcMode: "spline"})
Flint.view("InstallerLoading", "1324342600", function (view, on) {
view.render = function () {return view.el(25, "Flint.InstallerLoadingWrapper", {view: view}, view.el(26, "svg", {viewBox: "0 14 32 18", width: "32", height: "4", fill: "#f20", preserveAspectRatio: "none"},
view.el(27, "path", {className: "first", opacity: "0.8", transform: "translate(0 0)", d: "M2 14 V18 H6 V14z"},
view.el(28, "animateTransform", {attributeName: "transform", type: "translate", values: "0 0; 24 0; 0 0", dur: "2s", begin: "0", repeatCount: "indefinite", keySplines: "0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8", calcMode: "spline"})
),
view.el(68, "path", {className: "second", opacity: "0.5", transform: "translate(0 0)", d: "M0 14 V18 H8 V14z"},
view.el(69, "animateTransform", {attributeName: "transform", type: "translate", values: "0 0; 24 0; 0 0", dur: "2s", begin: "0.1s", repeatCount: "indefinite", keySplines: "0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8", calcMode: "spline"})
view.el(29, "path", {className: "second", opacity: "0.5", transform: "translate(0 0)", d: "M0 14 V18 H8 V14z"},
view.el(30, "animateTransform", {attributeName: "transform", type: "translate", values: "0 0; 24 0; 0 0", dur: "2s", begin: "0.1s", repeatCount: "indefinite", keySplines: "0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8", calcMode: "spline"})
),
view.el(70, "path", {className: "third", opacity: "0.25", transform: "translate(0 0)", d: "M0 14 V18 H8 V14z"},
view.el(71, "animateTransform", {attributeName: "transform", type: "translate", values: "0 0; 24 0; 0 0", dur: "2s", begin: "0.2s", repeatCount: "indefinite", keySplines: "0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8", calcMode: "spline"})
view.el(31, "path", {className: "third", opacity: "0.25", transform: "translate(0 0)", d: "M0 14 V18 H8 V14z"},
view.el(32, "animateTransform", {attributeName: "transform", type: "translate", values: "0 0; 24 0; 0 0", dur: "2s", begin: "0.2s", repeatCount: "indefinite", keySplines: "0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8", calcMode: "spline"})
)
)
);});
view.styles.$svg = function(_index) { return {
);};view.styles._static["$svg"] = {
position: 'absolute',
bottom: 0,
right: '50%',
marginRight: -50,
width: 100,
height: 17,
marginBottom: -15 }};});
height: 17 };view.styles["$svg"] = function (_index) {return { marginRight: -50,
marginBottom: -15 };};});
/* end view: InstallerLoading */;
Flint.view("Versions", "-641897763", function (view, on) {
view.update(view._render = function () {return view.el(72, "Flint.VersionsWrapper", {view: view}, view.props.versions.__flintmap(function(_, _index) { return view.el(function() { return [_index, 73] }, "version", {repeat: view.props.versions, onClick: function () {return view.props.onSelect(_);}},
view.el(74, "inner", null,
view.el(75, "v", {key: 'v' + _index}, _.version),
view.el(76, "info", null, _.description),
view.el(77, "a", {href: _.homepage, target: "_blank"}, "Info")
Flint.view("Versions", "-1080416209", function (view, on) {
view.render = function () {return view.el(33, "Flint.VersionsWrapper", {view: view}, view.props.versions.__flintmap(function(_, _index) { return view.el(function() { return [_index, 34] }, "version", {repeat: view.props.versions, onClick: function () {return view.props.onSelect(_);}},
view.el(35, "inner", null,
view.el(36, "v", {key: 'v' + _index}, _.version),
view.el(37, "info", null, _.description),
view.el(38, "a", {href: _.homepage, target: "_blank"}, "Info")
)
) })
);});
view.styles.$version = function(_index) { return {
);};view.styles._static["$version"] = {
textAlign: 'left',
padding: [2, 4],
borderRadius: 2 }};
borderRadius: 2 };view.styles["$version"] = function (_index) {return { padding: [2, 4] };};
view.styles.$inner = function(_index) { return {
flexFlow: 'row' }};
view.styles._static["$inner"] = {
flexFlow: 'row' };view.styles._static["$v"] = {
view.styles.$v = function(_index) { return {
flexGrow: 1,
fontWeight: 'bold',
fontWeight: 'bold' };view.styles["$v"] = function (_index) {return {
':hover': {
background: '#fff',
cursor: 'pointer' } }};
':hover': {
background: '#fff',
cursor: 'pointer' } };};
view.styles.$info = function(_index) { return {}};});
view.styles["$info"] = function (_index) {return {};};}); }) }();
/* end view: Versions */;;return exports }) }();
Flint.render()

@@ -475,0 +467,0 @@ })(Flint);

@@ -6,3 +6,3 @@ {

"description": "tools",
"version": "1.0.94",
"version": "1.0.95",
"main": "",

@@ -9,0 +9,0 @@ "scripts": {},

Sorry, the diff of this file is too big to display

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