New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rangefix

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rangefix - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

.editorconfig

11

.eslintrc.json
{
"extends": "wikimedia",
"ecmaVersion": 5,
"env": {
"browser": true,
"node": true,
"jquery": true
"commonjs": true,
"amd": true
},
"globals": {
"RangeFix": false
},
"rules": {
"wrap-iife": 0,
"spaced-comment": ["error", "always", { "exceptions": ["*", "!"] }]
}
}

@@ -0,1 +1,3 @@

/* eslint-env jquery */
$( function () {

@@ -25,2 +27,5 @@

$col = $( selection.focusNode ).closest( '.col' );
if ( !$col.is( '.col-text' ) ) {
return;
}
range = selection.getRangeAt( 0 );

@@ -64,2 +69,5 @@ $highlightsNative = $( '<div>' );

$( '.ce' ).on( 'input keyup', function () {
$( '.ce-mirror' ).html( $( this ).html() );
} );
} );

@@ -5,4 +5,7 @@ /*!

/* eslint-env node, es6 */
module.exports = function ( grunt ) {
grunt.loadNpmTasks( 'grunt-eslint' );
grunt.loadNpmTasks( 'grunt-stylelint' );

@@ -12,10 +15,15 @@ grunt.initConfig( {

eslint: {
dev: [
all: [
'*.js'
]
},
stylelint: {
all: [
'*.css'
]
},
watch: {
files: [
'.{eslint.json}',
'<%= eslint.dev %>'
'<%= eslint.all %>'
],

@@ -26,4 +34,4 @@ tasks: '_test'

grunt.registerTask( 'test', [ 'eslint' ] );
grunt.registerTask( 'test', [ 'eslint', 'stylelint' ] );
grunt.registerTask( 'default', 'test' );
};

@@ -1,2 +0,2 @@

Copyright (c) 2014-16 Ed Sanders under the terms
Copyright (c) 2014-17 Ed Sanders under the terms
of The MIT License (MIT), as follows:

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

{
"name": "rangefix",
"version": "0.2.3",
"version": "0.2.4",
"description": "Workaround for browser bugs in Range.prototype.getClientRects and Range.prototype.getBoundingClientRect.",

@@ -16,6 +16,8 @@ "license": "MIT",

"devDependencies": {
"eslint-config-wikimedia": "0.3.0",
"eslint-config-wikimedia": "0.4.0",
"grunt": "1.0.1",
"grunt-eslint": "19.0.0"
"grunt-eslint": "19.0.0",
"grunt-stylelint": "0.7.0",
"stylelint-config-wikimedia": "0.4.1"
}
}
/*!
* RangeFix v0.2.3
* RangeFix v0.2.4
* https://github.com/edg2s/rangefix

@@ -8,3 +8,14 @@ *

*/
( function () {
( function ( root, factory ) {
if ( typeof define === 'function' && define.amd ) {
// AMD. Register as an anonymous module.
define( factory );
} else if ( typeof exports === 'object' && typeof exports.nodeName !== 'string' ) {
// CommonJS
module.exports = factory();
} else {
// Browser globals
root.RangeFix = factory();
}
}( this, function () {

@@ -255,5 +266,3 @@ var broken,

// Expose
window.RangeFix = rangeFix;
} )();
return rangeFix;
} ) );

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc