This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"flex-shrink|-ms-flex-negative": [ | |
"0" | |
], | |
"transform-origin": [ | |
"0 50%" | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { join } from 'path' | |
import { ok, deepEqual } from '@zoroaster/assert' | |
import TempContext from 'temp-context' | |
import Context from '../../context' | |
/** @type {Object.<string, (c: Context, t: TempContext)>} */ | |
const T = { | |
context: [Context, TempContext], | |
async'handles any file upload'({ createApp, startApp, staticDir }, { TEMP, snapshot }) { | |
const s = join(staticDir, 'small.txt') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { app, url, middleware, router } = await idio({ | |
cors: { | |
use: true, | |
origin: PROD && [FRONT_END, HOST], | |
credentials: true, | |
}, | |
compress: { use: true }, | |
form: { | |
dest: 'upload', | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Users/zavr/a-la/jsx/test/fixture/Component.jsx:2 | |
<div className={className}> | |
^ | |
SyntaxError: Unexpected token < | |
at createScript (vm.js:80:10) | |
at Object.runInThisContext (vm.js:139:10) | |
at bootstrap_node.js:625:3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Users/zavr/a-la/jsx/test/fixture/Component.jsx:2 | |
<div className={className}> | |
^ | |
SyntaxError: Unexpected token < | |
at createScript (vm.js:80:10) | |
at Object.runInThisContext (vm.js:139:10) | |
at bootstrap_node.js:625:3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Users/zavr/a-la/jsx/test/fixture/Component.jsx:2 | |
<div className={className}> | |
^ | |
SyntaxError: Unexpected token < | |
at createScript (vm.js:80:10) | |
at Object.runInThisContext (vm.js:139:10) | |
at bootstrap_node.js:625:3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// was | |
import X from 'package-name' | |
// becomes | |
import X from '/node_modules/package-name/src/index.mjs' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// stdlib.js - to be compiled | |
import { c, b } from 'erte' | |
import Pedantry from 'pedantry' | |
import compare from '@depack/cache' | |
import whichStream from 'which-stream' | |
module.exports = { | |
'c': c, | |
'b': b, | |
'Pedantry': Pedantry, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* original */ | |
// threshold | |
if (threshold && ctx.response.length < threshold) return | |
/* fork */ | |
// threshold | |
if (threshold) { | |
if (ctx.body instanceof Readable) { | |
const st = /** @type {!stream.Readable} */ (ctx.body) | |
let totalLength = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* typal types/api.xml namespace */ | |
/** | |
* @typedef {import('@typedefs/goa').Middleware} _goa.Middleware | |
* @typedef {_idio.session} session Initialize the session middleware with `opts`. | |
* @typedef {(opts?: !_idio.SessionConfig) => !_goa.Middleware} _idio.session Initialize the session middleware with `opts`. | |
*/ |
NewerOlder