New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@idio/frontend

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@idio/frontend - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

src/index.js

8

build/index.js

@@ -10,5 +10,5 @@ const { collect } = require('catchment');

* The Middleware To Serve Front-End JavaScript.
* @param {Config} [config] Options for the program.
* @param {boolean} [config.shouldRun=true] A boolean option. Default `true`.
* @param {string} config.text A text to return.
* @param {FrontendConfig} [config] Options for the middleware.
* @param {string} [config.directory="frontend"] The directory from which to serve files. Default `frontend`.
* @param {string} [config.pragma="import { h } from 'preact'"] The pragma function to import. This enables to skip writing `h` at the beginning of each file. JSX will be transpiled to have `h` pragma, therefore to use React it's possible to do `import { createElement: h } from 'react'`. Default `import { h } from 'preact'`.
*/

@@ -47,3 +47,3 @@ async function frontend(config = {}) {

if (/\.jsx$/.test(path)) {
body = await transpileJSX(body, { quoteProps: 1 })
body = await transpileJSX(body)
if (pragma) body = `${pragma}\n${body}`

@@ -50,0 +50,0 @@ }

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

## 7 February 2019
### 1.2.3
- [package] Fix JSDoc documentation and up `@a-la/jsx`.
## 5 February 2019

@@ -2,0 +8,0 @@

{
"name": "@idio/frontend",
"version": "1.2.2",
"version": "1.2.3",
"description": "The Middleware To Serve Front-End JavaScript.",
"main": "build",
"main": "build/index.js",
"module": "src/index.js",
"scripts": {

@@ -23,3 +24,4 @@ "t": "zoroaster -a",

"files": [
"build"
"build",
"src"
],

@@ -56,3 +58,3 @@ "repository": {

"dependencies": {
"@a-la/jsx": "1.2.5",
"@a-la/jsx": "1.3.1",
"@wrote/read": "1.0.2",

@@ -59,0 +61,0 @@ "catchment": "3.2.2",

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