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

sylvanas

Package Overview
Dependencies
Maintainers
3
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sylvanas - npm Package Compare versions

Comparing version 0.4.3 to 0.5.0

.eslintrc.js

3

lib/babel-decorator-plugin.d.ts

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

export default function (): {
declare const _default: () => {
name: string;

@@ -6,1 +6,2 @@ inherits: any;

};
export default _default;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const plugin_syntax_decorators_1 = require("@babel/plugin-syntax-decorators");
function default_1() {
exports.default = () => {
return {

@@ -10,3 +10,2 @@ name: 'sylvanas-decorators',

};
}
exports.default = default_1;
};
import { FileEntity } from './typing';
export declare const lintAndFix: (content: string) => string;
export declare const lintAndFix: (content: string, filename?: string) => string;
declare function eslintJS(jsFiles: FileEntity[]): FileEntity[];
export default eslintJS;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.lintAndFix = void 0;
const path = require("path");

@@ -9,6 +10,6 @@ const eslint_1 = require("eslint");

fix: true,
baseConfig: importCache(path.resolve(__dirname, '../eslintrc.js')),
baseConfig: importCache(path.resolve(__dirname, '../.eslintrc.js')),
});
exports.lintAndFix = content => {
const report = engine.executeOnText(content);
exports.lintAndFix = (content, filename) => {
const report = engine.executeOnText(content, filename);
if (report.results[0].output) {

@@ -15,0 +16,0 @@ return report.results[0].output;

@@ -10,4 +10,4 @@ "use strict";

prettierOption.parser = 'babel';
return jsFiles.map(entity => {
let data = entity.data;
return jsFiles.map((entity) => {
let { data } = entity;
try {

@@ -14,0 +14,0 @@ data = prettier_1.format(entity.data, prettierOption);

{
"name": "sylvanas",
"version": "0.4.3",
"version": "0.5.0",
"description": "Covert TS to JS",

@@ -12,2 +12,3 @@ "main": "lib/index.js",

"test": "npm run build && jest",
"prettier": "prettier --write \"**/**.{js,jsx,tsx,ts,less,md,json}\"",
"prepublishOnly": "rm -rf lib && npm run build"

@@ -18,16 +19,17 @@ },

"dependencies": {
"@babel/core": "^7.4.5",
"@babel/plugin-syntax-decorators": "^7.2.0",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/plugin-transform-typescript": "^7.4.5",
"@babel/core": "^7.9.0",
"@babel/plugin-syntax-decorators": "^7.8.3",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-typescript": "^7.9.4",
"@types/prettier": "^1.16.4",
"@umijs/fabric": "^1.1.7",
"eslint": "^5.16.0",
"@umijs/fabric": "^2.2.2",
"eslint": "^7.7.0",
"fs-extra": "^8.0.1",
"import-fresh": "^3.1.0",
"prettier": "^1.17.1"
"prettier": "^2.1.1"
},
"devDependencies": {
"@types/eslint": "^4.16.6",
"@types/eslint": "^7.2.2",
"@types/fs-extra": "^7.0.0",
"@types/jest": "^26.0.10",
"@types/node": "^12.0.3",

@@ -34,0 +36,0 @@ "@types/react": "^16.8.19",

@@ -35,4 +35,4 @@ # Sylvanas

* `write`: Write new file with name of suffix `.js` or `.jsx`.
* `overwrite`: Like `write` but will remove origin files.
- `write`: Write new file with name of suffix `.js` or `.jsx`.
- `overwrite`: Like `write` but will remove origin files.

@@ -39,0 +39,0 @@ #### outDir - string

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