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

win-doc

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

win-doc - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

build/es/src/__tests__/test.mjs

10

build/cjs/src/index.js
"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 @@

27

package.json
{
"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"

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