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

esifycss

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esifycss - npm Package Compare versions

Comparing version 1.4.19 to 1.4.20

9

CHANGELOG.md

@@ -0,1 +1,10 @@

## [1.4.20](https://github.com/kei-ito/esifycss/compare/v1.4.19...v1.4.20) (2020-06-25)
### Bug Fixes
* copy .d.ts ([4142305](https://github.com/kei-ito/esifycss/commit/41423054add33dbb46d7c09c3630212148d5d68c))
## [1.4.19](https://github.com/kei-ito/esifycss/compare/v1.4.18...v1.4.19) (2020-06-24)

@@ -2,0 +11,0 @@

167

lib/minifier/walker.d.ts

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

declare const _exports: typeof import("acorn-walk");
export = _exports;
import * as acorn from 'acorn';
export type NodeType =
| 'ArrayExpression'
| 'ArrayPattern'
| 'ArrowFunctionExpression'
| 'FunctionDeclaration'
| 'FunctionExpression'
| 'AssignmentExpression'
| 'AssignmentPattern'
| 'BinaryExpression'
| 'LogicalExpression'
| 'AwaitExpression'
| 'RestElement'
| 'ReturnStatement'
| 'SpreadElement'
| 'ThrowStatement'
| 'UnaryExpression'
| 'UpdateExpression'
| 'YieldExpression'
| 'BlockStatement'
| 'ClassBody'
| 'Program'
| 'BreakStatement'
| 'ContinueStatement'
| 'CallExpression'
| 'NewExpression'
| 'CatchClause'
| 'ClassDeclaration'
| 'ClassExpression'
| 'ConditionalExpression'
| 'IfStatement'
| 'DebuggerStatement'
| 'EmptyStatement'
| 'Identifier'
| 'Literal'
| 'MetaProperty'
| 'Super'
| 'TemplateElement'
| 'ThisExpression'
| 'DoWhileStatement'
| 'ExportAllDeclaration'
| 'ExportDefaultDeclaration'
| 'ExportNamedDeclaration'
| 'ExportSpecifier'
| 'ExpressionStatement'
| 'ParenthesizedExpression'
| 'ForInStatement'
| 'ForOfStatement'
| 'ForStatement'
| 'ImportDeclaration'
| 'ImportDefaultSpecifier'
| 'ImportNamespaceSpecifier'
| 'ImportSpecifier'
| 'LabeledStatement'
| 'MemberExpression'
| 'MethodDefinition'
| 'Property'
| 'ObjectExpression'
| 'ObjectPattern'
| 'SequenceExpression'
| 'SwitchCase'
| 'SwitchStatement'
| 'TaggedTemplateExpression'
| 'TemplateLiteral'
| 'TryStatement'
| 'VariableDeclaration'
| 'VariableDeclarator'
| 'WhileStatement'
| 'WithStatement';
interface INode extends acorn.Node {
type: NodeType,
key?: IIdentifier,
value?: INode | string | number | null | boolean,
}
interface ILiteral extends INode {
type: 'Literal',
raw: string,
value: string | number | null | boolean,
}
interface IStringLiteral extends ILiteral {
value: string,
}
interface IIdentifier extends INode {
type: 'Identifier',
name: string,
}
interface ICallExpression extends INode {
type: 'CallExpression',
callee?: IIdentifier,
arguments: Array<INode>,
}
interface IExpressionStatement extends INode {
type: 'ExpressionStatement',
expression: ICallExpression,
}
interface IImportSpecifier extends INode {
type: 'ImportSpecifier',
imported: IIdentifier,
local: IIdentifier,
}
interface IImportDeclaration extends INode {
type: 'ImportDeclaration',
specifiers: Array<IImportSpecifier>,
source: IStringLiteral,
}
interface IVariableDeclarator extends INode {
type: 'VariableDeclaration',
id: IIdentifier,
}
interface IVariableDeclaration extends INode {
type: 'VariableDeclaration',
declarations: Array<IVariableDeclarator>,
}
interface IFunctionDeclaration extends INode {
type: 'FunctionDeclaration',
id: IIdentifier,
}
interface IMemberExpression extends INode {
type: 'MemberExpression',
key: IIdentifier,
value: INode,
}
interface IObjectExpression extends INode {
type: 'ObjectExpression',
properties: Array<IMemberExpression>,
}
interface IArrayExpression extends INode {
type: 'ArrayExpression',
elements: Array<INode>,
}
interface IProgram extends INode {
type: 'Program',
body: Array<IImportDeclaration | IExpressionStatement | IVariableDeclaration | IFunctionDeclaration>,
}
export interface IVisitors {
ImportDeclaration?: (node: IImportDeclaration) => void,
ExpressionStatement?: (node: IExpressionStatement) => void,
ObjectExpression?: (node: IObjectExpression) => void,
}
export const simple: (
ast: acorn.Node,
visitors: IVisitors,
) => void;
export const base: {
[key: string]: () => void,
};

5

package.json
{
"name": "esifycss",
"version": "1.4.19",
"version": "1.4.20",
"description": "Generates .js or .ts exports class names and custom properties",

@@ -32,2 +32,3 @@ "author": {

"build:tsc": "tsc",
"build:dts": "ts-node scripts/copy ./src/minifier/walker.d.ts ./lib/minifier/walker.d.ts",
"build:bin": "ts-node scripts/chmodScripts.ts",

@@ -42,3 +43,3 @@ "build:sample1:cleanup": "rimraf sample/01-mangle",

"build:sample2": "run-s build:sample2:cleanup build:sample2:copy build:sample2:esifycss",
"build": "run-s build:cleanup build:tsc build:helper build:bin build:sample*",
"build": "run-s build:cleanup build:tsc build:dts build:helper build:bin build:sample*",
"test:minifier": "ava '{lib,src}/minifier/**/*.test.js'",

@@ -45,0 +46,0 @@ "test:parser": "ava '{lib,src}/parser/**/*.test.js'",

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