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

@instructure/ui-testable

Package Overview
Dependencies
Maintainers
33
Versions
1833
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@instructure/ui-testable - npm Package Compare versions

Comparing version 5.40.1-rc.5 to 5.40.1-rc.6

4

CHANGELOG.md

@@ -6,4 +6,4 @@ # Change Log

<a name="5.40.1-rc.5"></a>
## [5.40.1-rc.5](https://github.com/instructure/instructure-ui/compare/v5.40.0...v5.40.1-rc.5) (2019-01-17)
<a name="5.40.1-rc.6"></a>
## [5.40.1-rc.6](https://github.com/instructure/instructure-ui/compare/v5.40.0...v5.40.1-rc.6) (2019-01-18)

@@ -10,0 +10,0 @@ **Note:** Version bump only for package @instructure/ui-testable

@@ -1,35 +0,6 @@

'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _createClass2 = require('babel-runtime/helpers/createClass');
var _createClass3 = _interopRequireDefault(_createClass2);
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
var _get5 = require('babel-runtime/helpers/get');
var _get6 = _interopRequireDefault(_get5);
var _inherits2 = require('babel-runtime/helpers/inherits');
var _inherits3 = _interopRequireDefault(_inherits2);
var _reactDom = require('react-dom');
var _uiDecorator = require('@instructure/ui-decorator');
var _uiDecorator2 = _interopRequireDefault(_uiDecorator);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _get from 'babel-runtime/helpers/get';
import _inherits from 'babel-runtime/helpers/inherits';
/*

@@ -59,3 +30,7 @@ * The MIT License (MIT)

exports.default = (0, _uiDecorator2.default)(function (ComposedComponent) {
import { findDOMNode } from 'react-dom';
import decorator from '@instructure/ui-decorator';
export default decorator(function (ComposedComponent) {
var _class, _temp;

@@ -65,3 +40,3 @@

var locator = {
attribute: 'data-uid',
attribute: 'data-cid',
value: displayName

@@ -71,13 +46,14 @@ };

var TestableComponent = (_temp = _class = function (_ComposedComponent) {
(0, _inherits3.default)(TestableComponent, _ComposedComponent);
_inherits(TestableComponent, _ComposedComponent);
function TestableComponent() {
(0, _classCallCheck3.default)(this, TestableComponent);
return (0, _possibleConstructorReturn3.default)(this, (TestableComponent.__proto__ || Object.getPrototypeOf(TestableComponent)).apply(this, arguments));
_classCallCheck(this, TestableComponent);
return _possibleConstructorReturn(this, (TestableComponent.__proto__ || Object.getPrototypeOf(TestableComponent)).apply(this, arguments));
}
(0, _createClass3.default)(TestableComponent, [{
_createClass(TestableComponent, [{
key: 'componentDidMount',
value: function componentDidMount() {
if ((0, _get6.default)(TestableComponent.prototype.__proto__ || Object.getPrototypeOf(TestableComponent.prototype), 'componentDidMount', this)) {
if (_get(TestableComponent.prototype.__proto__ || Object.getPrototypeOf(TestableComponent.prototype), 'componentDidMount', this)) {
var _get2;

@@ -89,3 +65,3 @@

(_get2 = (0, _get6.default)(TestableComponent.prototype.__proto__ || Object.getPrototypeOf(TestableComponent.prototype), 'componentDidMount', this)).call.apply(_get2, [this].concat(args));
(_get2 = _get(TestableComponent.prototype.__proto__ || Object.getPrototypeOf(TestableComponent.prototype), 'componentDidMount', this)).call.apply(_get2, [this].concat(args));
}

@@ -97,3 +73,3 @@ this.appendLocatorAttribute();

value: function componentDidUpdate() {
if ((0, _get6.default)(TestableComponent.prototype.__proto__ || Object.getPrototypeOf(TestableComponent.prototype), 'componentDidUpdate', this)) {
if (_get(TestableComponent.prototype.__proto__ || Object.getPrototypeOf(TestableComponent.prototype), 'componentDidUpdate', this)) {
var _get3;

@@ -105,3 +81,3 @@

(_get3 = (0, _get6.default)(TestableComponent.prototype.__proto__ || Object.getPrototypeOf(TestableComponent.prototype), 'componentDidUpdate', this)).call.apply(_get3, [this].concat(args));
(_get3 = _get(TestableComponent.prototype.__proto__ || Object.getPrototypeOf(TestableComponent.prototype), 'componentDidUpdate', this)).call.apply(_get3, [this].concat(args));
}

@@ -114,3 +90,3 @@ this.appendLocatorAttribute();

this._testableUnmounted = true;
if ((0, _get6.default)(TestableComponent.prototype.__proto__ || Object.getPrototypeOf(TestableComponent.prototype), 'componentWillUnmount', this)) {
if (_get(TestableComponent.prototype.__proto__ || Object.getPrototypeOf(TestableComponent.prototype), 'componentWillUnmount', this)) {
var _get4;

@@ -122,3 +98,3 @@

(_get4 = (0, _get6.default)(TestableComponent.prototype.__proto__ || Object.getPrototypeOf(TestableComponent.prototype), 'componentWillUnmount', this)).call.apply(_get4, [this].concat(args));
(_get4 = _get(TestableComponent.prototype.__proto__ || Object.getPrototypeOf(TestableComponent.prototype), 'componentWillUnmount', this)).call.apply(_get4, [this].concat(args));
}

@@ -139,3 +115,3 @@ clearTimeout(this.locatorTimeout);

// Use this.DOMNode for components that render as non-native Portals...
node = (0, _reactDom.findDOMNode)(_this2) || _this2.DOMNode;
node = findDOMNode(_this2) || _this2.DOMNode;
} catch (e) {

@@ -155,2 +131,3 @@ console.warn('[ui-testable] Could not append locator attribute: ' + e);

}]);
return TestableComponent;

@@ -157,0 +134,0 @@ }(ComposedComponent), _class.selector = selector, _temp);

@@ -64,3 +64,3 @@ 'use strict';

var locator = {
attribute: 'data-uid',
attribute: 'data-cid',
value: displayName

@@ -67,0 +67,0 @@ };

{
"name": "@instructure/ui-testable",
"version": "5.40.1-rc.5",
"version": "5.40.1-rc.6",
"description": "A UI component test utility made by Instructure Inc.",

@@ -24,8 +24,8 @@ "author": "Instructure, Inc. Engineering and Product Design",

"devDependencies": {
"@instructure/ui-presets": "^5.40.1-rc.5",
"@instructure/ui-test-utils": "^5.40.1-rc.5",
"@instructure/ui-babel-preset": "^5.40.1-rc.6",
"@instructure/ui-test-utils": "^5.40.1-rc.6",
"prop-types": "^15.6.2"
},
"dependencies": {
"@instructure/ui-decorator": "^5.40.1-rc.5"
"@instructure/ui-decorator": "^5.40.1-rc.6"
},

@@ -39,3 +39,4 @@ "peerDependencies": {

},
"gitHead": "43522824b116f940a5c9694b482ae7d5618cf18c"
"sideEffects": false,
"gitHead": "9e2555b01b534ab05726deb8cc14bbe6b6cd9bb5"
}

@@ -32,3 +32,3 @@ /*

const locator = {
attribute: 'data-uid',
attribute: 'data-cid',
value: displayName

@@ -35,0 +35,0 @@ }

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