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

contain-by-screen

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

contain-by-screen - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

.circleci/config.yml

2

js/index.js

@@ -193,2 +193,2 @@ 'use strict';

module.exports = exports['default'];
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJjb250YWluQnlTY3JlZW4iLCJlbGVtZW50IiwiYW5jaG9yUG9pbnQiLCJvcHRpb25zIiwicHJvY2VzcyIsImVudiIsIk5PREVfRU5WIiwid2luZG93IiwiZ2V0Q29tcHV0ZWRTdHlsZSIsInN0eWxlIiwicG9zaXRpb24iLCJjb25zb2xlIiwiZXJyb3IiLCJlbFJlY3QiLCJnZXRCb3VuZGluZ0NsaWVudFJlY3QiLCJhbmNob3JSZWN0IiwiYnVmZmVycyIsImFsbCIsImJ1ZmZlciIsInRvcCIsInRvcEJ1ZmZlciIsImJvdHRvbSIsImJvdHRvbUJ1ZmZlciIsImxlZnQiLCJsZWZ0QnVmZmVyIiwicmlnaHQiLCJyaWdodEJ1ZmZlciIsIm9wdGlvblBvc2l0aW9ucyIsIkFycmF5IiwiaXNBcnJheSIsImZpbHRlciIsIkJvb2xlYW4iLCJvcHRpb25IQWxpZ25zIiwiaEFsaWduIiwib3B0aW9uVkFsaWducyIsInZBbGlnbiIsInBvc2l0aW9ucyIsImxlbmd0aCIsImZvcmNlUG9zaXRpb24iLCJjb25jYXQiLCJoQWxpZ25zIiwiZm9yY2VIQWxpZ24iLCJ2QWxpZ25zIiwiZm9yY2VWQWxpZ24iLCJhbGxQb3NzaWJsZUNob2ljZXMiLCJtYXAiLCJjaG9pY2VBbmRDb29yZCIsImkiLCJjaG9pY2Ui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sgYnVmZmVycy5hbGwgKyBidWZmZXJzLmxlZnQpO1xuICAgICAgYnJlYWs7XG4gICAgZGVmYXVsdDogdGhyb3cgbmV3IEVycm9yKCdTaG91bGQgbm90IGhhcHBlbicpO1xuICAgIH1cbiAgICBzd2l0Y2ggKHZBbGlnbikge1xuICAgIGNhc2UgJ2NlbnRlcic6XG4gICAgICB0b3AgPSBNYXRoLnJvdW5kKChhbmNob3JSZWN0LnRvcCArIGFuY2hvclJlY3QuYm90dG9tIC0gZWxSZWN0LmhlaWdodCkvMik7XG4gICAgICBicmVhaztcbiAgICBjYXNlICd0b3AnOlxuICAgICAgdG9wID0gTWF0aC5yb3VuZChhbmNob3JSZWN0LnRvcCk7XG4gICAgICBicmVhaztcbiAgICBjYXNlICdib3R0b20nOlxuICAgICAgdG9wID0gTWF0aC5yb3VuZChhbmNob3JSZWN0LmJvdHRvbSAtIGVsUmVjdC5oZWlnaHQpO1xuICAgICAgYnJlYWs7XG4gICAgZGVmYXVsdDogdGhyb3cgbmV3IEVycm9yKCdTaG91bGQgbm90IGhhcHBlbicpO1xuICAgIH1cbiAgfVxuICByZXR1cm4ge3RvcCwgbGVmdH07XG59XG4iXX0=
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJjb250YWluQnlTY3JlZW4iLCJlbGVtZW50IiwiYW5jaG9yUG9pbnQiLCJvcHRpb25zIiwicHJvY2VzcyIsImVudiIsIk5PREVfRU5WIiwid2luZG93IiwiZ2V0Q29tcHV0ZWRTdHlsZSIsInN0eWxlIiwicG9zaXRpb24iLCJjb25zb2xlIiwiZXJyb3IiLCJlbFJlY3QiLCJnZXRCb3VuZGluZ0NsaWVudFJlY3QiLCJhbmNob3JSZWN0IiwiYnVmZmVycyIsImFsbCIsImJ1ZmZlciIsInRvcCIsInRvcEJ1ZmZlciIsImJvdHRvbSIsImJvdHRvbUJ1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contain-by-screen",
"version": "1.2.0",
"version": "1.2.1",
"description": "Position a dropdown element near a button in a way that fits on the screen.",

@@ -35,3 +35,3 @@ "main": "js/index.js",

"babel-cli": "^6.14.0",
"babel-eslint": "^7.2.3",
"babel-eslint": "^8.2.3",
"babel-plugin-add-module-exports": "^0.2.1",

@@ -45,5 +45,5 @@ "babel-plugin-transform-class-properties": "^6.11.5",

"eslint-plugin-flowtype": "^2.35.0",
"flow-bin": "^0.51.1",
"flow-copy-source": "^1.0.1",
"mocha": "^3.0.2",
"flow-bin": "^0.74.0",
"flow-copy-source": "^2.0.0",
"mocha": "^5.2.0",
"rimraf": "^2.6.1"

@@ -50,0 +50,0 @@ },

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