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

nanocomponent

Package Overview
Dependencies
Maintainers
3
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nanocomponent - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

10

example/leaflet.js

@@ -5,2 +5,3 @@ // // adapted from https://github.com/timwis/choo-leaflet-demo/blob/master/src/map.js

var leaflet = require('leaflet')
var onIdle = require('on-idle')
var html = require('bel')

@@ -23,2 +24,3 @@

Leaflet.prototype._render = function (coords) {
var self = this
this._coords = coords

@@ -30,3 +32,5 @@

} else {
this._updateMap()
onIdle(function () {
self._updateMap()
})
}

@@ -62,4 +66,4 @@

var map = leaflet.map(element).setView(coords, zoom)
leaflet.tileLayer('http://stamen-tiles-{s}.a.ssl.fastly.net/toner/{z}/{x}/{y}.{ext}', {
attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> &mdash; Map data &copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>',
leaflet.tileLayer('https://stamen-tiles-{s}.a.ssl.fastly.net/toner/{z}/{x}/{y}.{ext}', {
attribution: 'Map tiles by <a href="https://stamen.com">Stamen Design</a>, <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> &mdash; Map data &copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>',
subdomains: 'abcd',

@@ -66,0 +70,0 @@ minZoom: 0,

@@ -1,3 +0,1 @@

'use strict'
var onload = require('on-load')

@@ -4,0 +2,0 @@ var assert = require('assert')

{
"name": "nanocomponent",
"version": "3.0.0",
"version": "3.0.1",
"description": "Create performant HTML elements",
"main": "index.js",
"scripts": {
"build": "bankai build example --optimize",
"deps": "dependency-check . && dependency-check . --extra --no-dev -i yo-yoify",

@@ -32,2 +33,3 @@ "start": "bankai example --open",

"nanologger": "^1.0.2",
"on-idle": "^1.0.0",
"standard": "^8.6.0",

@@ -34,0 +36,0 @@ "tachyons": "^4.6.1",

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