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

mjolnir.js

Package Overview
Dependencies
Maintainers
4
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mjolnir.js - npm Package Compare versions

Comparing version 1.2.2 to 2.0.0-alpha.1

dist/cjs/constants.js

3

CHANGELOG.md
# Change Log
#### [2.0.0-alpha.1] - Sep 24, 2018
- NEW: Provide static browser/node targets (#22)
#### [1.2.2] - Sep 12, 2018

@@ -4,0 +7,0 @@ - FIX: Remove commonjs to fix the problem with cjs/esm interop (#20)

37

package.json
{
"name": "mjolnir.js",
"description": "An Event Manager",
"version": "1.2.2",
"version": "2.0.0-alpha.1",
"keywords": [

@@ -18,15 +18,18 @@ "hammerjs",

"license": "MIT",
"main": "dist/index.js",
"module": "dist-es6/index.js",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"browser": {
"./dist/cjs/utils/hammer.js": "./dist/cjs/utils/hammer.browser.js",
"./dist/esm/utils/hammer.js": "./dist/esm/utils/hammer.browser.js"
},
"files": [
"src",
"dist",
"dist-es6"
"dist"
],
"scripts": {
"start": "(cd examples/main && (path-exists node_modules || npm i) && npm run start-local)",
"build": "npm run clean && npm run build-es5 && npm run build-es6",
"build-es5": "mkdir -p dist && babel src --out-dir dist --plugins=transform-es2015-modules-commonjs,transform-runtime --source-maps inline",
"build-es6": "mkdir -p dist-es6 && babel src --out-dir dist-es6 --source-maps inline",
"clean": "rm -fr dist/* dist-es6/*",
"build": "npm run clean && npm run build-cjs && npm run build-esm",
"build-cjs": "mkdir -p dist/cjs && NODE_ENV=cjs babel src --out-dir dist/cjs",
"build-esm": "mkdir -p dist/esm && NODE_ENV=esm babel src --out-dir dist/esm",
"clean": "rm -fr dist/*",
"lint": "eslint src examples test",

@@ -41,15 +44,15 @@ "test": "npm run lint && node test/node.js",

"dependencies": {
"@babel/runtime": "^7.0.0",
"hammerjs": "^2.0.8"
},
"devDependencies": {
"babel-cli": "^6.22.2",
"babel-core": "^6.22.1",
"babel-eslint": "^6.0.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.24.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-es2015": "^6.18",
"eslint": "^3.0.0",
"@babel/cli": "^7.0.0",
"@babel/core": "^7.0.1",
"@babel/plugin-transform-runtime": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"babel-eslint": "^9.0.0",
"eslint": "^5.5.0",
"eslint-config-uber-es2015": "^3.0.0",
"eslint-config-uber-jsx": "^3.0.0",
"eslint-plugin-react": "~6.7.0",
"eslint-plugin-react": "~7.11.1",
"module-alias": "^2.0.0",

@@ -56,0 +59,0 @@ "pre-commit": "^1.2.2",

@@ -42,3 +42,3 @@ // Copyright (c) 2017 Uber Technologies, Inc.

// Purpose: include this in your module to avoids adding dependencies on
// micro modules like 'global' and 'is-browser';
// micro modules like 'global'

@@ -45,0 +45,0 @@ /* global window, global, document, navigator */

@@ -21,10 +21,2 @@ // Copyright (c) 2017 Uber Technologies, Inc.

import isBrowser from './is-browser';
import {enhancePointerEventInput, enhanceMouseInput} from './hammer-overrides';
let hammerjs;
if (isBrowser) {
hammerjs = require('hammerjs');
}
// Hammer.Manager mock for use in environments without `document` / `window`.

@@ -43,9 +35,4 @@ function HammerManagerMock(m) {

if (hammerjs) {
enhancePointerEventInput(hammerjs.PointerEventInput);
enhanceMouseInput(hammerjs.MouseInput);
}
export const Manager = HammerManagerMock;
export const Manager = hammerjs ? hammerjs.Manager : HammerManagerMock;
export default hammerjs;
export default null;
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