-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
- add support for TypeScript 5.0's array extends in tsconfig - drop support for Node.js 14 - remove tests for Tensorflow - update most dependencies --------- Signed-off-by: Sora Morimoto <sora@morimoto.io> Co-authored-by: Steven <steven@ceriously.com>
- Loading branch information
There are no files selected for viewing
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
require('./sourcemap-register.js');const { readFileSync, writeFileSync } = require('fs'), { Script } = require('vm'), { wrap } = require('module'); | ||
const basename = __dirname + '/index.js'; | ||
const source = readFileSync(basename + '.cache.js', 'utf-8'); | ||
const cachedData = !process.pkg && require('process').platform !== 'win32' && readFileSync(basename + '.cache'); | ||
const scriptOpts = { filename: basename + '.cache.js', columnOffset: -62 } | ||
const script = new Script(wrap(source), cachedData ? Object.assign({ cachedData }, scriptOpts) : scriptOpts); | ||
(script.runInThisContext())(exports, require, module, __filename, __dirname); | ||
if (cachedData) process.on('exit', () => { try { writeFileSync(basename + '.cache', script.createCachedData()); } catch(e) {} }); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import module from '@module'; | ||
|
||
console.log(module); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export default {}; |