Comparing version 4.0.0 to 4.1.0
@@ -12,3 +12,3 @@ var h = require('hyperscript') | ||
var content = h('section', { className: '.content' }) | ||
var content = h('section.content') | ||
var tabs = Tabs(content, function () { getSelection() }) | ||
@@ -35,3 +35,3 @@ var d = h('div.Hypertabs', [ | ||
d.add = function (el, change, split) { | ||
var page = h('div', { className: '.page' }, el) | ||
var page = h('div.page', el) | ||
page.content = el | ||
@@ -38,0 +38,0 @@ |
{ | ||
"name": "hypertabs", | ||
"description": "tabbed interface with hyperscript", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"homepage": "https://github.com/dominictarr/hypertabs", | ||
@@ -6,0 +6,0 @@ "repository": { |
10
tabs.js
@@ -39,8 +39,7 @@ var h = require('hyperscript') | ||
module.exports = function (content, onSelect) { | ||
var tabs = h('section', { className: '.tabs' }) | ||
var tabs = h('section.tabs') | ||
var selection | ||
function build_tab (page) { | ||
var link = h('a', { | ||
className: '.link', | ||
var link = h('a.link', { | ||
href: '#', | ||
@@ -60,4 +59,3 @@ onclick: function (ev) { | ||
) | ||
var rm = h('a', { | ||
className: '.close', | ||
var rm = h('a.close', { | ||
href: '#', | ||
@@ -71,3 +69,3 @@ onclick: function (ev) { | ||
var tab = h('div', { className: '.tab' } , [ | ||
var tab = h('div.tab', [ | ||
link, rm | ||
@@ -74,0 +72,0 @@ ]) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
24120
373