@commercetools-test-data/channel
Advanced tools
Comparing version 0.0.0-canary-20220411155328 to 3.0.0
@@ -1,11 +0,1 @@ | ||
// 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"; | ||
export * from "./declarations/src/index"; |
@@ -1,16 +0,7 @@ | ||
"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 | ||
'use strict'; | ||
// 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(); | ||
if (process.env.NODE_ENV === "production") { | ||
module.exports = require("./commercetools-test-data-channel.cjs.prod.js"); | ||
} else { | ||
module.exports = require("./commercetools-test-data-channel.cjs.dev.js"); | ||
} |
{ | ||
"name": "@commercetools-test-data/channel", | ||
"version": "0.0.0-canary-20220411155328", | ||
"version": "3.0.0", | ||
"description": "Data model for commercetools API Channel", | ||
@@ -11,7 +11,3 @@ "bugs": "https://github.com/commercetools/test-data/issues", | ||
}, | ||
"keywords": [ | ||
"javascript", | ||
"typescript", | ||
"test-data" | ||
], | ||
"keywords": ["javascript", "typescript", "test-data"], | ||
"license": "MIT", | ||
@@ -23,14 +19,9 @@ "publishConfig": { | ||
"module": "dist/commercetools-test-data-channel.esm.js", | ||
"files": [ | ||
"dist", | ||
"package.json", | ||
"LICENSE", | ||
"README.md" | ||
], | ||
"files": ["dist", "package.json", "LICENSE", "README.md"], | ||
"dependencies": { | ||
"@babel/runtime": "^7.17.8", | ||
"@babel/runtime-corejs3": "^7.17.8", | ||
"@commercetools-test-data/commons": "0.0.0-canary-20220411155328", | ||
"@commercetools-test-data/core": "0.0.0-canary-20220411155328", | ||
"@commercetools-test-data/utils": "0.0.0-canary-20220411155328", | ||
"@commercetools-test-data/commons": "3.0.0", | ||
"@commercetools-test-data/core": "3.0.0", | ||
"@commercetools-test-data/utils": "3.0.0", | ||
"@commercetools/platform-sdk": "^2.5.0", | ||
@@ -37,0 +28,0 @@ "@faker-js/faker": "^6.0.0" |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
24896
27
572
1
1
1
+ Added@commercetools-test-data/commons@3.0.0(transitive)
+ Added@commercetools-test-data/core@3.0.0(transitive)
+ Added@commercetools-test-data/utils@3.0.0(transitive)
- Removed@commercetools-test-data/commons@0.0.0-canary-20220411155328(transitive)
- Removed@commercetools-test-data/core@0.0.0-canary-20220411155328(transitive)
- Removed@commercetools-test-data/utils@0.0.0-canary-20220411155328(transitive)