spotlight-frontend
Advanced tools
Comparing version 3.5.0-beta.1 to 3.6.0-beta.1
@@ -1,14 +0,14 @@ | ||
// This is a manifest file that'll be compiled into application.js, which will include all the files | ||
// listed below. | ||
// | ||
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, | ||
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path. | ||
// | ||
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the | ||
// compiled file. | ||
// | ||
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details | ||
// about supported directives. | ||
// | ||
//= require spotlight/user/index | ||
//= require spotlight/admin/index | ||
// This is the sprockets entrypoint. | ||
//= require bootstrap/util | ||
//= require bootstrap/tab | ||
//= require bootstrap/tooltip | ||
//= require bootstrap/popover | ||
//= require bootstrap/carousel | ||
//= require leaflet | ||
//= require sir-trevor | ||
//= require clipboard | ||
//= require handlebars | ||
//= require tiny-slider | ||
//= require typeahead.bundle.min.js | ||
//= require spotlight/spotlight |
{ | ||
"name": "spotlight-frontend", | ||
"version": "3.5.0-beta.1", | ||
"version": "3.6.0-beta.1", | ||
"description": "Exhibits plugin for blacklight", | ||
"main": "app/assets/javascripts/spotlight", | ||
"scripts": { | ||
"prepare": "rollup --config rollup.config.js --sourcemap && ESM=true rollup --config rollup.config.js --sourcemap" | ||
}, | ||
@@ -22,2 +23,4 @@ "repository": { | ||
"devDependencies": { | ||
"rollup": "^2.60.0", | ||
"rollup-plugin-includepaths": "^0.2.4" | ||
}, | ||
@@ -24,0 +27,0 @@ "browserslist": [ |
@@ -115,1 +115,13 @@ spotlight | ||
- [Spotlight Community Group](https://groups.google.com/forum/#!forum/spotlight-community) (equivalent to #spotlight-service) | ||
## Building the javascript | ||
The javascript is built by npm from sources in `app/javascript` into a bundle | ||
in `app/assets/javascripts/spotlight/spotlight.js`. This file should not be edited | ||
by hand as any changes would be overwritten. When any of the javascript | ||
components in the gem are changed, this bundle should be rebuild with the | ||
following steps: | ||
1. [Install npm](https://www.npmjs.com/get-npm) | ||
1. run `npm install` to download dependencies | ||
1. run `npm run prepare` to build the bundle | ||
1. run `npm publish` to push the javascript package to https://npmjs.org/package/spotlight-frontend |
@@ -188,3 +188,3 @@ /*! | ||
list = this; | ||
step = function(level, depth) | ||
const step = function(level, depth) | ||
{ | ||
@@ -191,0 +191,0 @@ var array = [ ], |
@@ -97,3 +97,3 @@ /* | ||
downcode= function( slug ) | ||
const downcode = function( slug ) | ||
{ | ||
@@ -138,2 +138,2 @@ Downcoder.Initialize() ; | ||
return s.substring(0, num_chars);// trim to first num_chars chars | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
2682200
38042
1
126
0
9
2
98