Merge pull request #73 from jimjenkins5/jimjenkins5/package-vulnerabilities

chore: update dependencies to remove vulnerabilities
This commit is contained in:
Jeremy Thomerson 2021-05-13 22:30:29 -04:00 committed by GitHub
commit 3f3c4fd2b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 5689 additions and 4970 deletions

1
.editorconfig Symbolic link
View file

@ -0,0 +1 @@
node_modules/@silvermine/standardization/.editorconfig

1
.gitignore vendored
View file

@ -1,4 +1,5 @@
.DS_Store
node_modules
coverage
.nyc_output
dist

View file

@ -3,3 +3,5 @@
Gruntfile.js
tests/**
docs
.nyc_output
coverage

2
.nvmrc
View file

@ -1 +1 @@
12.14.0
12.22.1

16
.nycrc.json Normal file
View file

@ -0,0 +1,16 @@
{
"include": [
"src/**/*.js"
],
"extension": [
".js"
],
"reporter": [
"text-summary",
"html",
"lcov"
],
"instrument": true,
"sourceMap": true,
"all": true
}

View file

@ -2,11 +2,10 @@ language: node_js
node_js:
- "node" # Latest node version
- "lts/*" # Latest LTS version
- "14"
- "12"
- "10"
- "8"
before_install: npm i -g npm@6.13.4
before_install: npm i -g npm@6.14.12
script:
- npm run commitlint

View file

@ -113,11 +113,11 @@ module.exports = function(grunt) {
target: config.js.all,
},
sasslint: {
stylelint: {
options: {
configFile: path.join(__dirname, 'node_modules', '@silvermine/sass-lint-config', 'sass-lint.yml'),
configFile: path.join(__dirname, 'node_modules', '@silvermine', 'standardization', '.stylelintrc.yml'),
},
target: config.sass.all,
src: config.sass.all,
},
watch: {
@ -146,9 +146,9 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-postcss');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-sass');
grunt.loadNpmTasks('grunt-sass-lint');
grunt.loadNpmTasks('grunt-stylelint');
grunt.registerTask('standards', [ 'eslint', 'sasslint' ]);
grunt.registerTask('standards', [ 'eslint', 'stylelint' ]);
grunt.registerTask('build-js', [ 'browserify', 'uglify' ]);
grunt.registerTask('build-css', [ 'sass', 'postcss' ]);
grunt.registerTask('build', [ 'build-js', 'build-css' ]);

View file

@ -1,5 +1,5 @@
'use strict';
module.exports = {
extends: [ '@silvermine/eslint-config/commitlint.js' ],
extends: [ '@silvermine/standardization/commitlint.js' ],
};

10595
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -5,7 +5,7 @@
"main": "src/js/index.js",
"scripts": {
"prepare": "grunt build",
"test": "check-node-version --npm 6.13.4 && ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- -R spec 'tests/**/*.test.js'",
"test": "check-node-version --npm 6.14.12 && nyc mocha -- 'tests/**/*.test.js'",
"commitlint": "commitlint --from ad805e8"
},
"author": "Jeremy Thomerson",
@ -26,15 +26,14 @@
},
"homepage": "https://github.com/silvermine/videojs-quality-selector#readme",
"devDependencies": {
"@commitlint/cli": "8.3.5",
"@commitlint/travis-cli": "8.3.5",
"@silvermine/eslint-config": "3.0.0-rc.0",
"@silvermine/sass-lint-config": "1.1.0",
"autoprefixer": "9.5.1",
"@silvermine/eslint-config": "3.0.1",
"@silvermine/standardization": "1.1.0",
"autoprefixer": "8.6.5",
"check-node-version": "4.0.3",
"coveralls": "3.0.3",
"eslint": "6.8.0",
"expect.js": "0.3.1",
"grunt": "1.0.4",
"grunt": "1.4.0",
"grunt-browserify": "5.3.0",
"grunt-contrib-clean": "2.0.0",
"grunt-contrib-uglify": "4.0.1",
@ -42,11 +41,10 @@
"grunt-eslint": "22.0.0",
"grunt-postcss": "0.9.0",
"grunt-sass": "3.0.2",
"grunt-sass-lint": "0.2.4",
"istanbul": "0.4.5",
"mocha": "6.1.4",
"mocha": "8.4.0",
"mocha-lcov-reporter": "1.3.0",
"node-sass": "4.12.0",
"node-sass": "6.0.0",
"nyc": "15.1.0",
"rewire": "4.0.1",
"silvermine-serverless-utils": "git+https://github.com/silvermine/serverless-utils.git#910f1149af824fc8d0fa840878079c7d3df0f414",
"sinon": "7.3.2"
@ -56,6 +54,6 @@
},
"dependencies": {
"class.extend": "0.9.1",
"underscore": "1.9.1"
"underscore": "1.13.1"
}
}

View file

@ -7,10 +7,11 @@
}
.vjs-icon-placeholder {
// From video.js font: https://github.com/videojs/font
/* stylelint-disable-next-line font-family-no-missing-generic-family-keyword */
font-family: 'VideoJS';
font-weight: normal;
font-style: normal;
&:before {
&::before {
content: '\f110';
}
}