@changesets/get-version-range-type
Advanced tools
Comparing version 0.0.0 to 0.0.2
@@ -1,7 +0,7 @@ | ||
"use strict"; | ||
'use strict'; | ||
let unregister = require("/Users/bconolly/Development/changesets/node_modules/@preconstruct/hook/dist/hook.cjs.js").___internalHook("/Users/bconolly/Development/changesets"); | ||
module.exports = require("/Users/bconolly/Development/changesets/packages/get-version-range-type/src/index.ts"); | ||
unregister(); | ||
if (process.env.NODE_ENV === "production") { | ||
module.exports = require("./get-version-range-type.cjs.prod.js"); | ||
} else { | ||
module.exports = require("./get-version-range-type.cjs.dev.js"); | ||
} |
@@ -1,15 +0,7 @@ | ||
// 👋 hey!! | ||
// you might be reading this and seeing .esm in the filename | ||
// and being confused why there is commonjs below this filename | ||
// DON'T WORRY! | ||
// this is intentional | ||
// it's only commonjs with `preconstruct dev` | ||
// when you run `preconstruct build`, it will be ESM | ||
// why is it commonjs? | ||
// we need to re-export every export from the source file | ||
// but we can't do that with ESM without knowing what the exports are (because default exports aren't included in export/import *) | ||
// and they could change after running `preconstruct dev` so we can't look at the file without forcing people to | ||
// run preconstruct dev again which wouldn't be ideal | ||
// this solution could change but for now, it's working | ||
function getVersionRangeType(versionRange) { | ||
if (versionRange.charAt(0) === "^") return "^"; | ||
if (versionRange.charAt(0) === "~") return "~"; | ||
return ""; | ||
} | ||
module.exports = require("/Users/bconolly/Development/changesets/packages/get-version-range-type/src/index.ts") | ||
export default getVersionRangeType; |
{ | ||
"name": "@changesets/get-version-range-type", | ||
"version": "0.0.0", | ||
"version": "0.0.2", | ||
"description": "Common get-version-range-type shared between changeset packages", | ||
@@ -9,3 +9,2 @@ "main": "dist/get-version-range-type.cjs.js", | ||
"repository": "https://github.com/changesets/changesets/tree/master/packages/get-version-range-type" | ||
} | ||
} |
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
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
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
1902
9
37
2