@theme-ui/theme-provider
Advanced tools
Comparing version 0.15.0-develop.22 to 0.15.0-develop.26
@@ -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"; |
@@ -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("./theme-ui-theme-provider.cjs.prod.js"); | ||
} else { | ||
module.exports = require("./theme-ui-theme-provider.cjs.dev.js"); | ||
} | ||
// this bit of code imports the require hook and registers it | ||
let unregister = require("../../../node_modules/.pnpm/@preconstruct+hook@0.4.0/node_modules/@preconstruct/hook").___internalHook(typeof __dirname === 'undefined' ? undefined : __dirname, "../../..", ".."); | ||
// this re-exports the source file | ||
module.exports = require("../src/index.tsx"); | ||
unregister(); |
{ | ||
"name": "@theme-ui/theme-provider", | ||
"version": "0.15.0-develop.22", | ||
"version": "0.15.0-develop.26", | ||
"repository": "system-ui/theme-ui", | ||
@@ -15,6 +15,5 @@ "main": "dist/theme-ui-theme-provider.cjs.js", | ||
"dependencies": { | ||
"@theme-ui/color-modes": "0.15.0-develop.22", | ||
"@theme-ui/core": "0.15.0-develop.22", | ||
"@theme-ui/css": "0.15.0-develop.22", | ||
"@theme-ui/mdx": "0.15.0-develop.22" | ||
"@theme-ui/color-modes": "^0.15.0-develop.26", | ||
"@theme-ui/core": "^0.15.0-develop.26", | ||
"@theme-ui/css": "^0.15.0-develop.26" | ||
}, | ||
@@ -25,3 +24,8 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "596aeb366bdec8c3459d5e00fbfa23d75f1bb4d8" | ||
} | ||
"devDependencies": { | ||
"@babel/core": "^7.0.0", | ||
"@types/react": "^18", | ||
"@theme-ui/test-utils": "^0.15.0-develop.26" | ||
}, | ||
"gitHead": "621199460fa3bdb0100748441e62517b7529b8c8" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
5
1
16487
3
9
254
+ Added@theme-ui/color-modes@0.15.7(transitive)
+ Added@theme-ui/core@0.15.7(transitive)
+ Added@theme-ui/css@0.15.7(transitive)
- Removed@theme-ui/mdx@0.15.0-develop.22
- Removed@mdx-js/react@2.3.0(transitive)
- Removed@theme-ui/color-modes@0.15.0-develop.22(transitive)
- Removed@theme-ui/core@0.15.0-develop.22(transitive)
- Removed@theme-ui/css@0.15.0-develop.22(transitive)
- Removed@theme-ui/mdx@0.15.0-develop.22(transitive)
- Removed@theme-ui/parse-props@0.15.0-develop.22(transitive)
- Removed@types/mdx@2.0.13(transitive)
- Removed@types/prop-types@15.7.12(transitive)
- Removed@types/react@18.3.3(transitive)