Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

simmerjs

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

simmerjs - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

lib/configuration.js

4

package.json
{
"name": "simmerjs",
"description": "A pure Javascript reverse CSS selector engine which calculates a DOM element's unique CSS selector on the current page.",
"version": "0.5.0",
"version": "0.5.1",
"author": "Gidi Meir Morris",

@@ -28,3 +28,3 @@ "main": "lib/simmer.js",

"buildBrowser": "rollup -c",
"buildModule": "babel modules -d lib --ignore .test.js",
"buildModule": "rm -rf ./lib && babel modules -d lib --ignore .test.js",
"lint": "eslint ./modules/**/*.js",

@@ -31,0 +31,0 @@ "format": "prettier-eslint --write \"modules/**/*.js\"",

@@ -85,10 +85,3 @@ Simmer JS [![Build Status](https://travis-ci.org/gmmorris/simmerjs.svg?branch=master)](https://travis-ci.org/gmmorris/simmerjs) [![Code Climate](https://codeclimate.com/github/gmmorris/simmerjs/badges/gpa.svg)](https://codeclimate.com/github/gmmorris/simmerjs)

| **depth** - How deep into the DOM hierarchy should Simmer go in order to reach a unique selector. This is a delicate game because the higher the number the more likely you are to reach a unique selector, but it also means a longer and more breakable one. Assuming you want to store this selector to use later, making it longer also means it is more likely to change and loose it's validity. | 3 | |
| **errorHandling** -
How to handle errors which occur during the analysis?
<br/>Valid Options<br/>
<ul>
<li>_false_: errors are ignored by Simmer</li>
<li>_true_: errors rethrown and expected to be caught by the user</li>
<li>_a function callback will be called with two parameters: the exception and the element being analyzed</li>
</ul> | false |
| **errorHandling** - How to handle errors which occur during the analysis <br/><br/>Valid Options<br/><ul><li>_false_: errors are ignored by Simmer</li><li>_true_: errors rethrown and expected to be caught by the user</li><li>_a function callback will be called with two parameters: the exception and the element being analyzed</li></ul> | false |
| **selectorMaxLength** - A maximum length for the CSS selector can be specified - if no specific selector can be found which is shorter than this length then it is treated as if no selector could be found. | 520 |

@@ -95,0 +88,0 @@

@@ -18,4 +18,2 @@ // rollup.config.js

console.log(JSON.stringify(babelConfig))
export default {

@@ -22,0 +20,0 @@ entry: 'modules/index.js',

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