Comparing version 0.1.1 to 0.2.0
"use strict"; | ||
var _interopRequireDefault = require("reshow-runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
exports.win = exports.hasWin = exports.doc = void 0; | ||
var _typeof2 = _interopRequireDefault(require("reshow-runtime/helpers/typeof")); | ||
var _reshowConstant = require("reshow-constant"); | ||
@@ -20,3 +14,3 @@ | ||
w = w || win(); | ||
return _reshowConstant.UNDEFINED !== (0, _typeof2["default"])(w.document) ? w.document : def || defaultObj; | ||
return _reshowConstant.UNDEFINED !== typeof w.document ? w.document : def || defaultObj; | ||
}; | ||
@@ -23,0 +17,0 @@ |
{ | ||
"version": "0.2.0", | ||
"name": "win-doc", | ||
"version": "0.1.1", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/react-atomic/react-atomic-organism", | ||
"directory": "packages/lib/win-doc" | ||
}, | ||
"description": "Simple to avoid global not found error", | ||
"repository": "react-atomic/react-atomic-organism", | ||
"main": "./build/cjs/src/index.js", | ||
"module": "./build/es/src/index.js", | ||
"module": "./build/es/src/index.mjs", | ||
"keywords": [], | ||
@@ -17,14 +21,15 @@ "author": "Hill <hill@kimo.com>", | ||
"@babel/cli": "^7.x", | ||
"chai": "*", | ||
"jsdom": "*", | ||
"jsdom-global": "*", | ||
"mocha": "*" | ||
"reshow-constant": "*" | ||
}, | ||
"exports": { | ||
"require": "./build/cjs/src/index.js", | ||
"import": "./build/es/src/index.mjs" | ||
}, | ||
"scripts": { | ||
"clean": "find ./build -name '*.*' | xargs rm -rf", | ||
"build:cjs": "BABEL_ENV=cjs babel src -d build/cjs/src --ignore /**/__tests__ --root-mode upward", | ||
"build:es": "BABEL_ENV=es babel src -d build/es/src --out-file-extension .mjs --root-mode upward", | ||
"build": "npm run clean && npm run build:cjs && npm run build:es", | ||
"build:cjs": "BABEL_ENV=cjs babel src -d build/cjs/src --root-mode upward", | ||
"build:es": "BABEL_ENV=es babel src -d build/es/src --root-mode upward", | ||
"mochaFor": "mocha -r jsdom-global/register", | ||
"mocha": "npm run mochaFor -- 'build/cjs/**/__tests__/*.js'", | ||
"mochaFor": "mocha -r global-jsdom/register", | ||
"mocha": "npm run mochaFor -- 'build/es/**/__tests__/*.mjs'", | ||
"test": "npm run build && npm run mocha", | ||
@@ -31,0 +36,0 @@ "prepublishOnly": "npm run test" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
2
0
3991
6
95
1