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

cursejs

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cursejs - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

2

bower.json
{
"name": "curse",
"version": "2.2.0",
"version": "2.2.1",
"authors": [

@@ -5,0 +5,0 @@ "Jonathan Clem <jonathan@jclem.net>"

@@ -312,6 +312,9 @@ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.Curse=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){

value: function offset() {
var _this = this;
var startOffset = arguments[0] === undefined ? 0 : arguments[0];
var endOffset = arguments[1] === undefined ? 0 : arguments[1];
this.start += startOffset;
this.end += endOffset;
var endOffset = arguments[1] === undefined ? startOffset : arguments[1];
return (function () {
_this.start += startOffset;
_this.end += endOffset;
})();
},

@@ -318,0 +321,0 @@ writable: true,

{
"name": "cursejs",
"version": "2.2.0",
"version": "2.2.1",
"description": "A user selection caching utility",

@@ -5,0 +5,0 @@ "main": "dist/curse.js",

@@ -258,3 +258,3 @@ /**

*/
offset(startOffset = 0, endOffset = 0) {
offset(startOffset = 0, endOffset = startOffset) {
this.start += startOffset;

@@ -261,0 +261,0 @@ this.end += endOffset;

@@ -38,3 +38,3 @@ describe('Curse', function() {

window.getSelection().removeAllRanges();
curse.offset(1, 1);
curse.offset(1);
curse.restore();

@@ -41,0 +41,0 @@ assertSelected(' bar');

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