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

fib-typify

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fib-typify - npm Package Compare versions

Comparing version 0.9.0 to 0.10.0

.github/workflows/run-ci.yml

5

.vscode/settings.json
{
"files.associations": {
".all-contributorsrc": "json"
}
}
},
"typescript.tsdk": "node_modules/typescript/lib"
}

0

bin/fib-typify.js

@@ -0,0 +0,0 @@ #!/usr/bin/env fibjs

@@ -0,0 +0,0 @@ #!/usr/bin/env fibjs

@@ -0,0 +0,0 @@ #!/usr/bin/env fibjs

module.exports = {
output: ['--out', '-o']
}

@@ -0,0 +0,0 @@ const argFlags = require('./arg_flags')

const fs = require('fs')
const path = require('path')
const mkdirp = require('@fibjs/mkdirp')
const mkdirp = (target) => {
try {
if (!fs.exists(target)) {
fs.mkdir(target)
}
} catch (error) {
mkdirp(path.dirname(target));
try {
fs.mkdir(target)
} catch (error) {}
}
}
exports.mkdirp = mkdirp;
const readdirr = require('@fibjs/fs-readdir-recursive')

@@ -109,2 +123,11 @@

/**
*
* @param {Class_Buffer} buf
* @param {{
* filename: string
* }} args
* @param {import('typescript').TranspileOptions} moduleOptions
* @returns
*/
function compileCallback (buf, args, moduleOptions) {

@@ -111,0 +134,0 @@ let tsScriptString = buf + ''

module.exports = require('@fibjs/builtin-modules')

@@ -0,0 +0,0 @@ const fs = require('fs')

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ const fs = require('fs')

@@ -0,0 +0,0 @@ const fs = require('fs')

@@ -0,0 +0,0 @@ const fs = require('fs')

@@ -5,2 +5,7 @@ const ts = require('typescript')

/**
*
* @param {string | Class_Buffer} tsRaw
* @param {ts.TranspileOptions} moduleOptions
*/
exports.compileModule = function (tsRaw = '', moduleOptions) {

@@ -7,0 +12,0 @@ moduleOptions.compilerOptions = getCompilerOptions(moduleOptions.compilerOptions)

@@ -0,0 +0,0 @@ const fs = require('fs')

@@ -0,0 +0,0 @@ const fs = require('fs')

@@ -0,0 +0,0 @@ const ts = require('typescript')

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

const mkdirp = require('@fibjs/mkdirp')
const mkdirp = require('../_utils').mkdirp;

@@ -28,2 +28,10 @@ const { resolveCwdTsProject } = require('./compilerOptions')

host.directoryExists = (target) => {
return fs.existsSync(target) && fs.statSync(target).isDirectory();
}
host.fileExists = (fileName) => {
return fs.existsSync(fileName);
}
return host;

@@ -35,9 +43,10 @@ }

compilerOptions,
host = createCompilerHost(compilerOptions)
compilerHost = createCompilerHost(compilerOptions)
) {
return ts.createProgram(
fileNames,
compilerOptions,
host
);
return ts.createProgram({
rootNames: fileNames,
options: compilerOptions,
host: compilerHost
});
}

@@ -44,0 +53,0 @@

@@ -0,0 +0,0 @@ const ts = require('typescript')

@@ -0,0 +0,0 @@ const ts = require('typescript')

@@ -0,0 +0,0 @@ const ts = require('typescript')

v0.9.0 / 2021-05-08
v0.10.0 / 2021-10-12
==================
* ci: stop support to fibjs 0.31
* feat: support typescript 4.2 (#21)
* ci: upgrade ci config.
* ci: migrate to github actions.
* chore: upgrade deps, fix tsconfig.json
v0.9.0 / 2021-05-08
===================
* Release v0.9.0
* feat: upgrade typescript to 4.1.x:

@@ -6,0 +16,0 @@ * chore: deprecate some top level apis

@@ -0,0 +0,0 @@ "use strict";

@@ -11,4 +11,3 @@ "use strict";

const host_1 = require("./ts/host");
const mkdirp = require('@fibjs/mkdirp');
const { fixNonAbsolutePath } = require('../core/_utils');
const { fixNonAbsolutePath, mkdirp } = require('../core/_utils');
const { formatAndPrintDiagnostic } = require('../core/ts-apis/diagnostic');

@@ -15,0 +14,0 @@ function isWatchValid() {

@@ -29,2 +29,3 @@ "use strict";

getDirectories: ts.sys.getDirectories,
// writeFile: ts.sys.writeFile
};

@@ -31,0 +32,0 @@ const services = ts.createLanguageService(servicesHost);

{
"name": "fib-typify",
"version": "0.9.0",
"version": "0.10.0",
"description": "just write fibjs with typescript : )",

@@ -18,2 +18,3 @@ "main": "./lib",

"ci": "npm run build && npm run test",
"ts-intf": "fibjs test/spec.ts-intf.js",
"prepublishOnly": "npm run build"

@@ -38,3 +39,2 @@ },

"@fibjs/fs-readdir-recursive": "^1.0.2",
"@fibjs/mkdirp": "^1.0.1",
"@fibjs/rmdirr": "^2.0.0",

@@ -44,16 +44,17 @@ "@fxjs/cli": "0.0.2",

"source-map-support": "^0.5.12",
"typescript": "4.1.5"
"typescript": "4.2.4"
},
"ci": {
"type": "travis, appveyor",
"type": "actions",
"version": [
"0.31.0",
"0.32.0",
"0.32.1"
"0.33.0",
"0.34.0"
]
},
"devDependencies": {
"@fibjs/ci": "^2.3.0",
"@fibjs/types": "^0.31.0",
"react": "^16.9.0"
"@fibjs/ci": "^2.5.0",
"@fibjs/types": "^0.33.15",
"react": "^16.9.0",
"ts-expect": "^1.3.0"
},

@@ -60,0 +61,0 @@ "engines": {

@@ -0,0 +0,0 @@ # fib-typify

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ ## Structures

@@ -0,0 +0,0 @@ {

@@ -0,0 +0,0 @@ {

{
"extends": "./tsconfig.dft.json"
"extends": "./tsconfig.dft.json",
"include": [
"./src/*"
]
}

@@ -0,0 +0,0 @@ /// <reference types="@fibjs/types" />

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ import ts = require('typescript');

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

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