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

@jam3/detect

Package Overview
Dependencies
Maintainers
14
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jam3/detect - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

dist/index.js

15

__tests__/api.test.js

@@ -30,3 +30,2 @@ 'use strict';

expect(os.isAndroid).toBeDefined();
expect(os.isFirefoxOS).toBeDefined();
expect(os.isWindowsPhone).toBeDefined();

@@ -38,5 +37,5 @@ expect(os.isBlackberry).toBeDefined();

expect(os.isChromeOS).toBeDefined();
expect(os.getOSName).toBeDefined();
expect(os.getOSVersion).toBeDefined();
expect(os.getOSMajorVersion).toBeDefined();
expect(os.getName).toBeDefined();
expect(os.getVersion).toBeDefined();
expect(os.getMajorVersion).toBeDefined();
});

@@ -52,5 +51,5 @@

expect(browser.isOpera).toBeDefined();
expect(browser.getBrowserName).toBeDefined();
expect(browser.getBrowserVersion).toBeDefined();
expect(browser.getBrowserMajorVersion).toBeDefined();
expect(browser.getName).toBeDefined();
expect(browser.getVersion).toBeDefined();
expect(browser.getMajorVersion).toBeDefined();
});

@@ -65,4 +64,4 @@

expect(inAppBrowser.isInAppBrowser).toBeDefined();
expect(inAppBrowser.getInAppBrowserVersion).toBeDefined();
expect(inAppBrowser.getVersion).toBeDefined();
});
});

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

expect(device.getDevicePixelRatio()).toBe(devicePixelRatio);
expect(device.getPixelRatio()).toBe(devicePixelRatio);
});

@@ -18,0 +18,0 @@

'use strict';
import { detector, inAppBrowser } from '../src';
import { inAppBrowser } from '../src';

@@ -5,0 +5,0 @@ describe('In App Browser detector tests', () => {

'use strict';
import { detector, os } from '../src';
import { os } from '../src';

@@ -5,0 +5,0 @@ describe('OS detector tests', () => {

# Changelog
## v1.0.1
Exported commonjs and es with rollup for compatibility
#### :nail_care: Enhancement
- Export cjs and es version
- [PR #1](https://github.com/Jam3/nyg-jam3/pull/1)
#### :house: Internal
- Fix unit tests
- Commit #a29e36f1081982fc5917c6e86e6ec0c45f52db19
#### :memo: Documentation
- Update Changelog
## Launch v1.0.0
A library is born
{
"name": "@jam3/detect",
"version": "1.0.0",
"description": "React runtime library to detect extra properties passed to components.",
"main": "./src/index.js",
"version": "1.0.1",
"description": "User agent feature detection like Device Orientation, in App Browser Detection, etc",
"main": "dist/index.js",
"module": "dist/index.module.js",
"keywords": [

@@ -14,3 +15,4 @@ "detect",

"scripts": {
"test": "jest --watch"
"test": "jest --watch",
"build": "rollup -c rollup.config.js"
},

@@ -31,4 +33,10 @@ "repository": {

"@babel/core": "^7.2.2",
"@babel/plugin-proposal-class-properties": "^7.3.0",
"@babel/preset-env": "^7.3.1",
"jest": "^24.0.0"
"babel-jest": "^24.0.0",
"jest": "^24.0.0",
"rollup": "^1.1.2",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-commonjs": "^9.2.0",
"rollup-plugin-node-resolve": "^4.0.0"
},

@@ -38,3 +46,3 @@ "jest": {

"collectCoverageFrom": [
"**/*.js",
"src/**/*.js",
"!**/node_modules/**"

@@ -41,0 +49,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