Socket
Socket
Sign inDemoInstall

@lion/field

Package Overview
Dependencies
Maintainers
1
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lion/field - npm Package Compare versions

Comparing version 0.8.7 to 0.8.8

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

## [0.8.8](https://github.com/ing-bank/lion/compare/@lion/field@0.8.7...@lion/field@0.8.8) (2020-02-06)
### Bug Fixes
* **button:** run regexp once instead of every render cycle ([954adc5](https://github.com/ing-bank/lion/commit/954adc56596f2d9244baf48889d6b338b2a12ac4))
## [0.8.7](https://github.com/ing-bank/lion/compare/@lion/field@0.8.6...@lion/field@0.8.7) (2020-02-05)

@@ -8,0 +19,0 @@

10

package.json
{
"name": "@lion/field",
"version": "0.8.7",
"version": "0.8.8",
"description": "Fields are the most fundamental building block of the Form System",

@@ -36,7 +36,7 @@ "author": "ing-bank",

"dependencies": {
"@lion/core": "0.4.2",
"@lion/validate": "0.6.5"
"@lion/core": "0.4.3",
"@lion/validate": "0.6.6"
},
"devDependencies": {
"@lion/localize": "0.8.5",
"@lion/localize": "0.8.6",
"@open-wc/demoing-storybook": "^1.8.3",

@@ -46,3 +46,3 @@ "@open-wc/testing": "^2.5.0",

},
"gitHead": "e7406054fc052866cb13d2b9ece6994aeac82e4b"
"gitHead": "d67225984ce359c421e1c1e350da98819f83e452"
}

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

const isIE11 = /Trident/.test(window.navigator.userAgent);
import { browserDetection } from '@lion/core';

@@ -17,5 +17,5 @@ /**

if (pos === Node.DOCUMENT_POSITION_PRECEDING || pos === Node.DOCUMENT_POSITION_CONTAINED_BY) {
return isIE11 ? -1 : 1;
return browserDetection.isIE11 ? -1 : 1;
}
return isIE11 ? 1 : -1;
return browserDetection.isIE11 ? 1 : -1;
};

@@ -22,0 +22,0 @@

import { expect, fixture, html } from '@open-wc/testing';
import sinon from 'sinon';
import { browserDetection } from '@lion/core';
import { getAriaElementsInRightDomOrder } from '../../src/utils/getAriaElementsInRightDomOrder.js';

@@ -46,2 +48,25 @@

});
it('orders in reverse for IE11', async () => {
const browserDetectionStub = sinon.stub(browserDetection, 'isIE11').value(true);
const el = await fixture(html`
<div>
<div id="a"></div>
<div></div>
<div id="b">
<div></div>
<div id="b-child"></div>
</div>
<div></div>
<div id="c"></div>
<div></div>
</div>
`);
// eslint-disable-next-line no-unused-vars
const [a, _1, b, _2, bChild, _3, c, _4] = el.querySelectorAll('div');
const unorderedNodes = [bChild, c, a, b];
const result = getAriaElementsInRightDomOrder(unorderedNodes);
expect(result).to.eql([c, bChild, b, a]);
browserDetectionStub.restore();
});
});
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