🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@commercetools-frontend/cypress-environments

Package Overview
Dependencies
Maintainers
3
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commercetools-frontend/cypress-environments - npm Package Compare versions

Comparing version

to
0.0.2

12

dist/commercetools-frontend-cypress-environments.cjs.d.ts

@@ -1,1 +0,11 @@

export * from "./declarations/src/index";
// are you seeing an error that a default export doesn't exist but your source file has a default export?
// you should run `yarn` or `yarn preconstruct dev` if preconstruct dev isn't in your postinstall hook
// curious why you need to?
// this file exists so that you can import from the entrypoint normally
// except that it points to your source file and you don't need to run build constantly
// which means we need to re-export all of the modules from your source file
// and since export * doesn't include default exports, we need to read your source file
// to check for a default export and re-export it if it exists
// it's not ideal, but it works pretty well ¯\_(ツ)_/¯
export * from "../src/index";

21

dist/commercetools-frontend-cypress-environments.cjs.js

@@ -1,7 +0,16 @@

'use strict';
"use strict";
// this file might look strange and you might be wondering what it's for
// it's lets you import your source files by importing this entrypoint
// as you would import it if it was built with preconstruct build
// this file is slightly different to some others though
// it has a require hook which compiles your code with Babel
// this means that you don't have to set up @babel/register or anything like that
// but you can still require this module and it'll be compiled
if (process.env.NODE_ENV === "production") {
module.exports = require("./commercetools-frontend-cypress-environments.cjs.prod.js");
} else {
module.exports = require("./commercetools-frontend-cypress-environments.cjs.dev.js");
}
// this bit of code imports the require hook and registers it
let unregister = require("../../../node_modules/@preconstruct/hook").___internalHook(typeof __dirname === 'undefined' ? undefined : __dirname, "../../..", "..");
// this re-exports the source file
module.exports = require("../src/index.ts");
unregister();
{
"name": "@commercetools-frontend/cypress-environments",
"version": "0.0.1",
"version": "0.0.2",
"description": "Cypress package to setup environment configuration using dotenv files",

@@ -24,7 +24,6 @@ "license": "MIT",

"dotenv": "16.0.2",
"glob": "8.0.3"
"glob": "8.0.3",
"pkg-dir": "5.0.0"
},
"devDependencies": {
"@babel/core": "7.19.1",
"@babel/preset-typescript": "7.18.6",
"typescript": "^4.8.2"

@@ -31,0 +30,0 @@ },