1(function (global) { 2 3 var cdn = 'https://unpkg.com/'; 4 var versionPlaceholder = '@{{VERSION}}/'; 5 6 var subgroupPathPrefix0 = cdn + 'leaflet.featuregroup.subgroup' + versionPlaceholder; 7 var subgroupPathPrefix = subgroupPathPrefix0 + 'dist/'; 8 9 var libs = [ 10 global.libLeafletVersions, // Assumes that "leaflet-versions.js" file has already been executed, so that libLeafletVersions is globally available. 11 ]; 12 13 // In case libLeafletMarkerClusterVersions is also globally available. 14 if (global.libLeafletMarkerClusterVersions) { 15 libs.push(global.libLeafletMarkerClusterVersions); 16 } 17 18 // Plugin library. 19 libs.push({ 20 name: 'leaflet.featuregroup.subgroup', 21 mandatory: true, 22 versions: [ 23 // You can use https://www.srihash.org/ to generate the SRI hash. 24 _makeSubGroupVersionAssets({ 25 name: '1.0.2', 26 sriSrcJs: 'sha384-svfed/3FeCsVv1Bq0lXOx2+p9iHbHO1ylmU9eoj7PtU5683TiHc/g0FL7FLpwlLL' 27 }), 28 _makeSubGroupVersionAssets({ 29 name: '1.0.1', 30 sriSrcJs: 'sha384-jbTL/zsueVL4bMZERISP/PzASzooTdHjfAEmvij+Xmj5m41EDGfE4Ym9gT6Hvho1' 31 }), 32 // Version 1.0.0 not published on npm, hence not available on CDN. 33 { 34 name: '0.1.2', 35 assets: [ 36 manageLibsVersions.makeScript( 37 // Versions < 1.0.0 did not have a build step, hence no `dist/` folder. 38 subgroupPathPrefix0 + 'leaflet.featuregroup.subgroup-src.js', 39 '0.1.2', 40 'sha384-FkzU6kGQEPFmZR/Te8Umcc5Mue+QV312qRXveCDpXqKxr8DsyHctFzwuaTUqyZne' 41 ) 42 ] 43 }, 44 // Version 0.1.1 not published on npm, hence not available on CDN. 45 { 46 name: 'local', 47 defaultVersion: true, 48 disabled: true, // Will be enabled if assets are found to be available at runtime (use `checkAssetsAvailability`). 49 assets: [{ 50 type: 'script', 51 path: 'https://unpkg.com/[email protected]/dist/leaflet.featuregroup.subgroup.js' 52 }] 53 } 54 ] 55 }); 56 57 58 // To be executed after manage-libs-versions is ready. 59 // https://github.com/ghybs/manage-libs-versions 60 // https://www.npmjs.com/package/manage-libs-versions 61 global.bundle1 = new manageLibsVersions.Bundle({ 62 name: 'bundle1', 63 libs: libs 64 }); 65 66 67 function _makeSubGroupVersionAssets(options) { 68 var versionName = options.name; 69 70 return { 71 name: versionName, 72 defaultVersion: options.defaultVersion, 73 disabled: options.disabled, 74 assets: [ 75 manageLibsVersions.makeScript(subgroupPathPrefix + 'leaflet.featuregroup.subgroup-src.js', versionName, options.sriSrcJs) 76 ] 77 }; 78 } 79 80})(this);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.