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

@instructure/ui-utils

Package Overview
Dependencies
Maintainers
34
Versions
2082
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@instructure/ui-utils - npm Package Compare versions

Comparing version 10.4.2-snapshot-1 to 10.4.2-snapshot-10

7

CHANGELOG.md

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

## [10.4.2-snapshot-1](https://github.com/instructure/instructure-ui/compare/v10.4.1...v10.4.2-snapshot-1) (2024-10-30)
## [10.4.2-snapshot-10](https://github.com/instructure/instructure-ui/compare/v10.4.1...v10.4.2-snapshot-10) (2024-11-06)
**Note:** Version bump only for package @instructure/ui-utils
### Bug Fixes
* **ui-options,ui-utils:** subgroup titles in Options are not announced by TalkBack and iOS VoiceOver ([ebdf8f0](https://github.com/instructure/instructure-ui/commit/ebdf8f047cf8541723d494b16432c8248ef5fe1e))
## [10.4.1](https://github.com/instructure/instructure-ui/compare/v10.4.0...v10.4.1) (2024-10-28)

@@ -16,0 +19,0 @@

@@ -62,2 +62,8 @@ /*

};
export { getBrowser, isSafari, isEdge, isIE, isFirefox, isChromium };
const isAndroidOrIOS = () => {
const parser = new UAParser();
const result = parser.getResult();
const device = parser.getDevice();
return result.os.name === 'Android' || device.model === 'iPhone' || device.model === 'iPad' ? true : false;
};
export { getBrowser, isSafari, isEdge, isIE, isFirefox, isChromium, isAndroidOrIOS };

@@ -7,3 +7,3 @@ "use strict";

});
exports.isSafari = exports.isIE = exports.isFirefox = exports.isEdge = exports.isChromium = exports.getBrowser = void 0;
exports.isSafari = exports.isIE = exports.isFirefox = exports.isEdge = exports.isChromium = exports.isAndroidOrIOS = exports.getBrowser = void 0;
var _uaParserJs = _interopRequireDefault(require("ua-parser-js"));

@@ -74,2 +74,9 @@ /*

};
exports.isFirefox = isFirefox;
exports.isFirefox = isFirefox;
const isAndroidOrIOS = () => {
const parser = new _uaParserJs.default();
const result = parser.getResult();
const device = parser.getDevice();
return result.os.name === 'Android' || device.model === 'iPhone' || device.model === 'iPad' ? true : false;
};
exports.isAndroidOrIOS = isAndroidOrIOS;
{
"name": "@instructure/ui-utils",
"version": "10.4.2-snapshot-1",
"version": "10.4.2-snapshot-10",
"description": "A collection of utilities for UI components",

@@ -25,3 +25,3 @@ "author": "Instructure, Inc. Engineering and Product Design",

"devDependencies": {
"@instructure/ui-babel-preset": "10.4.2-snapshot-1",
"@instructure/ui-babel-preset": "10.4.2-snapshot-10",
"@testing-library/jest-dom": "^6.4.6",

@@ -34,5 +34,5 @@ "@testing-library/react": "^16.0.1",

"@babel/runtime": "^7.25.6",
"@instructure/console": "10.4.2-snapshot-1",
"@instructure/shared-types": "10.4.2-snapshot-1",
"@instructure/ui-dom-utils": "10.4.2-snapshot-1",
"@instructure/console": "10.4.2-snapshot-10",
"@instructure/shared-types": "10.4.2-snapshot-10",
"@instructure/ui-dom-utils": "10.4.2-snapshot-10",
"@types/ua-parser-js": "^0.7.39",

@@ -39,0 +39,0 @@ "fast-deep-equal": "^3.1.3",

@@ -66,2 +66,21 @@ /*

export { getBrowser, isSafari, isEdge, isIE, isFirefox, isChromium }
const isAndroidOrIOS = (): boolean => {
const parser = new UAParser()
const result = parser.getResult()
const device = parser.getDevice()
return result.os.name === 'Android' ||
device.model === 'iPhone' ||
device.model === 'iPad'
? true
: false
}
export {
getBrowser,
isSafari,
isEdge,
isIE,
isFirefox,
isChromium,
isAndroidOrIOS
}

@@ -17,3 +17,4 @@ import UAParser from 'ua-parser-js';

declare const isFirefox: () => boolean;
export { getBrowser, isSafari, isEdge, isIE, isFirefox, isChromium };
declare const isAndroidOrIOS: () => boolean;
export { getBrowser, isSafari, isEdge, isIE, isFirefox, isChromium, isAndroidOrIOS };
//# sourceMappingURL=getBrowser.d.ts.map

Sorry, the diff of this file is not supported yet

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