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

@hashicorp/hashi-basic-table

Package Overview
Dependencies
Maintainers
16
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hashicorp/hashi-basic-table - npm Package Compare versions

Comparing version 2.0.0-alpha.0 to 2.0.0

41

dist/index.js
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var _require = require('preact'),
h = _require.h;
var React = _interopDefault(require('react'));
var _require2 = require('reshape-preact-components'),
decode = _require2.decode;
function BasicTable(_ref) {
var rows = _ref.data.rows;
return React.createElement("div", {
className: "g-basic-table"
}, React.createElement("ul", null, rows.map(function (item, index) {
return React.createElement("li", {
key: "row-".concat(index)
}, React.createElement("span", null, item.time_slot), React.createElement("span", null, item.description));
})));
var _data = _ref._data;
var data = decode(_data).rows;
return h(
'div',
{ 'class': 'g-basic-table' },
h(
'ul',
null,
data.map(function (item, index) {
return h(
'li',
{ key: 'row-' + index },
h(
'span',
null,
item.time_slot
),
h(
'span',
null,
item.description
)
);
})
)
);
}
module.exports = BasicTable;
{
"name": "@hashicorp/hashi-basic-table",
"description": "simple table",
"version": "2.0.0-alpha.0",
"version": "2.0.0",
"author": "Hashicorp - Jeff Escalante",
"dependencies": {
"react": "^16.8.6"
"main": "dist",
"peerDependencies": {
"preact": "^8.2.6",
"reshape-preact-components": "~0.6.0"
},
"main": "dist",
"publishConfig": {

@@ -16,3 +17,3 @@ "access": "public"

},
"gitHead": "5f9b5a0487251e5846a3eabd9ff839d3fe7e1e31"
"gitHead": "bce95041ba417df9086f3d9f4e7bc2bb5efe1af7"
}

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