Skip to content

Commit

Permalink
initial changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Raj-StepSecurity committed Nov 27, 2024
1 parent 0863404 commit 40ab92a
Show file tree
Hide file tree
Showing 7 changed files with 191,992 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Copyright (c) 2019-2020 Luca Cappa
// Released under the term specified in file LICENSE.txt
// SPDX short identifier: MIT

module.exports = {
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
extends: [
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin
],
parserOptions: {
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
sourceType: 'module', // Allows for the use of imports
project: './tsconfig.json',
tsconfigRootDir: __dirname,
},
rules: {
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
// e.g. "@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-floating-promises": ["error"],
"@typescript-eslint/no-explicit-any": ["off"],
"@typescript-eslint/no-unused-vars": ["off"]
},
};
4 changes: 4 additions & 0 deletions dist/action.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
if (!yy.ast) {
yy.ast = _ast;
_ast.initialize();
}
3,756 changes: 3,756 additions & 0 deletions dist/esprima.js

Large diffs are not rendered by default.

111,266 changes: 111,266 additions & 0 deletions dist/index.js

Large diffs are not rendered by default.

34 changes: 34 additions & 0 deletions dist/module.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
var _ast = {

initialize: function() {
this._nodes = [];
this._node = {};
this._stash = [];
},

set: function(props) {
for (var k in props) this._node[k] = props[k];
return this._node;
},

node: function(obj) {
if (arguments.length) this._node = obj;
return this._node;
},

push: function() {
this._nodes.push(this._node);
this._node = {};
},

unshift: function() {
this._nodes.unshift(this._node);
this._node = {};
},

yield: function() {
var _nodes = this._nodes;
this.initialize();
return _nodes;
}
};
76,881 changes: 76,881 additions & 0 deletions dist/post/index.js

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
module.exports = {
clearMocks: true,
restoreMocks: true,
moduleFileExtensions: ['js', 'ts'],
testEnvironment: 'node',
testMatch: ['**/*.test.ts'],
testRunner: 'jest-circus/runner',
transform: {
'^.+\\.ts$': 'ts-jest'
},
verbose: true,
silent: false,
globals: {
'ts-jest': {
tsconfig: './tsconfig.json',
},
},
collectCoverage: true,
coveragePathIgnorePatterns: [
"<rootDir>/build/", "<rootDir>/node_modules/", "<rootDir>/__tests__", "__tests__"
],
collectCoverageFrom: [
"src/*.ts",
"!**/node_modules/**",
"!**/build/**",
"!**/dist/**"
]
}

0 comments on commit 40ab92a

Please sign in to comment.