Socket
Socket
Sign inDemoInstall

gatsby-plugin-theme-ui

Package Overview
Dependencies
Maintainers
1
Versions
460
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-plugin-theme-ui - npm Package Compare versions

Comparing version 0.1.3 to 0.1.7

24

gatsby-node.js

@@ -8,4 +8,6 @@ const fs = require('fs')

const hasModule = dirname => {
return fs.existsSync(path.join(dirname, 'src', 'theme.js'))
|| fs.existsSync(path.join(dirname, 'src', 'theme', 'index.js'))
return (
fs.existsSync(path.join(dirname, 'src', 'theme.js')) ||
fs.existsSync(path.join(dirname, 'src', 'theme', 'index.js'))
)
}

@@ -24,5 +26,3 @@

if (hasThemePlugin && hasModule(theme.themeDir)) {
themeModules.push(
path.join(theme.themeDir, 'src', 'theme')
)
themeModules.push(path.join(theme.themeDir, 'src', 'theme'))
}

@@ -41,3 +41,3 @@ })

test: /\.js$/,
include: path.dirname(require.resolve('gatsby-plugin-theme-ui'))
include: path.dirname(require.resolve('gatsby-plugin-theme-ui')),
},

@@ -54,9 +54,9 @@ {

themes: themeModules,
}
}
]
}
]
}
},
},
],
},
],
},
})
}

@@ -17,11 +17,9 @@ const { jsx } = require('theme-ui')

exports.onRenderBody = ({
setPreBodyComponents,
}) => {
exports.onRenderBody = ({ setPreBodyComponents }) => {
const script = jsx('script', {
dangerouslySetInnerHTML: {
__html: noflash
}
__html: noflash,
},
})
setPreBodyComponents([ script ])
setPreBodyComponents([script])
}

@@ -1,2 +0,1 @@

# The MIT License (MIT)

@@ -11,2 +10,1 @@

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

@@ -6,3 +6,3 @@ const path = require('path')

module.exports = function () {
module.exports = function() {
const opts = getOptions(this)

@@ -9,0 +9,0 @@

{
"name": "gatsby-plugin-theme-ui",
"version": "0.1.3",
"version": "0.1.7",
"main": "index.js",

@@ -11,3 +11,3 @@ "author": "Brent Jackson <jxnblk@gmail.com>",

},
"gitHead": "0babdce85b4fe687d1904718c0467862abe1ee40"
"gitHead": "e7aecff15597150925b6c5f2def98d6d84a78db9"
}

@@ -1,2 +0,1 @@

# gatsby-plugin-theme-ui

@@ -13,5 +12,3 @@

module.exports = {
plugins: [
'gatsby-plugin-theme-ui',
]
plugins: ['gatsby-plugin-theme-ui'],
}

@@ -48,6 +45,6 @@ ```

background: '#000',
}
}
},
},
},
}
```

@@ -1,6 +0,2 @@

const {
jsx,
ThemeProvider,
ColorMode,
} = require('theme-ui')
const { jsx, ThemeProvider, ColorMode } = require('theme-ui')
const merge = require('lodash.merge')

@@ -12,11 +8,14 @@ const { themes } = require('gatsby-plugin-theme-ui/loader')

module.exports = ({ element }, opts) => {
return jsx(ThemeProvider, {
...opts,
theme,
},
theme.initialColorMode && jsx(ColorMode, {
key: 'theme-ui-color-mode',
}),
return jsx(
ThemeProvider,
{
...opts,
theme,
},
theme.initialColorMode &&
jsx(ColorMode, {
key: 'theme-ui-color-mode',
}),
element
)
}
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