Socket
Socket
Sign inDemoInstall

ember-leaflet-marker-cluster

Package Overview
Dependencies
202
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.1 to 0.1.2

yarn.lock

6

changelog.MD
## 0.1.2
- Fix style dependency imports [#21](https://github.com/canufeel/ember-leaflet-marker-cluster/pull/21)
- Fastboot 1.0.0 support [#20](https://github.com/canufeel/ember-leaflet-marker-cluster/pull/20)
Thanks to [willviles](https://github.com/willviles)
## 0.1.1

@@ -3,0 +9,0 @@

60

index.js
/* jshint node: true */
'use strict';
var Funnel = require('broccoli-funnel');
var mergeTrees = require('broccoli-merge-trees');
var path = require('path');
const Funnel = require('broccoli-funnel');
const mergeTrees = require('broccoli-merge-trees');
const BroccoliDebug = require('broccoli-debug');
const fastbootTransform = require('fastboot-transform');
const path = require('path');

@@ -12,14 +14,10 @@ module.exports = {

included(app) {
let vendor = this.treePaths.vendor;
let dir = `${vendor}/leaflet.markercluster`;
if (!isFastBoot()) {
// Main modules
app.import(`${dir}/leaflet.markercluster.js`);
app.import(`${dir}/MarkerCluster.css`);
app.import(`${dir}/MarkerCluster.Default.css`);
const vendor = this.treePaths.vendor;
// Main modules
app.import(vendor + '/leaflet.markercluster/leaflet.markercluster.js');
app.import(vendor + '/leaflet.markercluster/MarkerCluster.css');
app.import(vendor + '/leaflet.markercluster/MarkerCluster.Default.css');
}
return this._super.included.apply(this, arguments);

@@ -29,16 +27,31 @@ },

treeForVendor(vendorTree) {
var trees = [];
let debugTree = BroccoliDebug.buildDebugCallback(this.name),
trees = [];
if (vendorTree) {
trees.push(vendorTree);
trees.push(
debugTree(vendorTree, 'vendorTree')
);
}
trees.push(moduleToFunnel('leaflet.markercluster', {
include: ['*.js', '*.css'],
let js = fastbootTransform(
moduleToFunnel('leaflet.markercluster', {
include: ['*.js'],
destDir: 'leaflet.markercluster'
})
);
let css = moduleToFunnel('leaflet.markercluster', {
include: ['*.css'],
destDir: 'leaflet.markercluster'
}));
});
return mergeTrees(trees);
},
trees.push(
debugTree(js, 'leaflet.markercluster:js'),
debugTree(css, 'leaflet.markercluster:css')
);
return debugTree(mergeTrees(trees), 'mergedVendorTrees');
}
};

@@ -54,8 +67,1 @@

}
// Checks to see whether this build is targeting FastBoot. Note that we cannot
// check this at boot time--the environment variable is only set once the build
// has started, which happens after this file is evaluated.
function isFastBoot() {
return process.env.EMBER_CLI_FASTBOOT === 'true';
}
{
"name": "ember-leaflet-marker-cluster",
"version": "0.1.1",
"version": "0.1.2",
"description": "Addon for Ember-Leaflet which adds marker clusters",

@@ -53,4 +53,6 @@ "directories": {

"dependencies": {
"broccoli-debug": "^0.6.3",
"ember-cli-babel": "^5.1.5",
"ember-cli-htmlbars": "^1.0.3",
"fastboot-transform": "^0.1.2",
"leaflet": "^1.0.3",

@@ -57,0 +59,0 @@ "leaflet.markercluster": "^1.0.4"

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc