ember-leaflet-marker-cluster
Advanced tools
Comparing version 0.1.1 to 0.1.2
## 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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
220896
137
1
6
+ Addedbroccoli-debug@^0.6.3
+ Addedfastboot-transform@^0.1.2
+ Addedansi-styles@3.2.1(transitive)
+ Addedbroccoli-debug@0.6.5(transitive)
+ Addedbroccoli-funnel@2.0.2(transitive)
+ Addedbroccoli-merge-trees@2.0.1(transitive)
+ Addedbroccoli-stew@1.6.0(transitive)
+ Addedchalk@2.4.2(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addeddebug@3.2.7(transitive)
+ Addedfastboot-transform@0.1.3(transitive)
+ Addedfs-extra@5.0.0(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedjsonfile@4.0.0(transitive)
+ Addedmerge-trees@1.0.1(transitive)
+ Addedms@2.1.3(transitive)
+ Addedrsvp@4.8.5(transitive)
+ Addedsupports-color@5.5.0(transitive)
+ Addedtree-sync@1.4.0(transitive)
+ Addeduniversalify@0.1.2(transitive)