Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

castborg

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

castborg - npm Package Compare versions

Comparing version 0.0.10 to 0.0.11

2

lib/src/ast-helpers/ast-modifier.js

@@ -83,2 +83,2 @@ 'use strict';

module.exports = AstModifier;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFzdC1oZWxwZXJzL2FzdC1tb2RpZmllci5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSxJQUFJLE1BQU0sR0FBRyxPQUFPLENBQUMsUUFBUSxDQUFDLENBQUM7Ozs7Ozs7SUFNekIsV0FBVztBQUVKLFdBRlAsV0FBVyxHQUVEOzBCQUZWLFdBQVc7O0FBR2IsVUFBTSxJQUFJLEtBQUssQ0FBQyxnRUFBZ0UsQ0FBQyxDQUFDO0dBQ25GOztlQUpHLFdBQVc7Ozs7Ozs7O1dBVzBCLDRDQUFDLFlBQVksRUFBRSxXQUFXLEVBQUU7O0FBRW5FLGtCQUFZLENBQUMsT0FBTyxDQUFDLElBQUksR0FBRyxXQUFXLENBQUMsTUFBTSxDQUFDLFlBQVksQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLENBQUM7QUFDMUUsYUFBTyxZQUFZLENBQUM7S0FDckI7Ozs7Ozs7OztXQU9xQyx5Q0FBQyxhQUFhLEVBQUUsV0FBVyxFQUFFO0FBQ2pFLG1CQUFhLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUMsV0FBVyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7S0FDakQ7Ozs7Ozs7OztXQU9zQywwQ0FBQyxhQUFhLEVBQUUsV0FBVyxFQUFFOztBQUVsRSxVQUFJLHFCQUFxQixHQUFHLEtBQUssQ0FBQztBQ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pbGUgZnVsbHBhdGhcbiAgICogQHBhcmFtICB7U3RyaW5nfSBkYXRhICAgICAgIGZpbGUgY29udGVudFxuICAgKi9cbiAgd3JpdGU6IGJiLmNvcm91dGluZShmdW5jdGlvbiogKGZ1bGxfcGF0aCwgZGF0YSkge1xuICAgIHlpZWxkIGZzLndyaXRlRmlsZUFzeW5jKGZ1bGxfcGF0aCwgZGF0YSk7XG4gIH0pLFxuXG4gIC8qKlxuICAgKiBta2RpcnMgOjogZnMubWtkaXJzXG4gICAqIEBwYXJhbSAge1N0cmluZ30gZnVsbF9wYXRoICBmb2xkZXIgZnVsbHBhdGhcbiAgICovXG4gIG1rZGlyczogYmIuY29yb3V0aW5lKGZ1bmN0aW9uKiAoZnVsbF9wYXRoKSB7XG4gICAgeWllbGQgZnMubWtkaXJzKGZ1bGxfcGF0aCk7XG4gIH0pLFxuXG4gIC8qKlxuICAgKiBnbG9iIDo6IGdsb2JcbiAgICovXG4gIGdsb2I6IHJlcXVpcmUoJ2dsb2InKSxcblxufTtcbiJdLCJzb3VyY2VSb290IjoiL1x1MDAxYlszOW1cdTAwMWJbMW1cdTAwMWJbMzRtY2FzdGJvcmdcdTAwMWJbMzltXHUwMDFiWzIybVx1MDAxYls5MG0oXHUwMDFiWzM5bVx1MDAxYlszNG0wLjAuMTBcdTAwMWJbMzltXHUwMDFiWzkwbSlcdTAwMWJbMzltXHUwMDFiWzkwbS9zcmMifQ==

@@ -136,2 +136,2 @@ 'use strict';

module.exports = SourceCode;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNvdXJjZS1jb2RlLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBQUEsSUFBSSxNQUFNLEdBQUcsT0FBTyxDQUFDLFFBQVEsQ0FBQyxDQUFDO0FBQy9CLElBQUksU0FBUyxHQUFHLE9BQU8sQ0FBQyxjQUFjLENBQUMsQ0FBQztBQUN4QyxJQUFJLE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AgICByZXR1cm4gdGhpcztcbiAgICB9LmJpbmQodGhpcykpKGZ1bGxfcGF0aCk7XG4gIH1cblxuICBnZXQgY29kZSgpIHtcbiAgICByZXR1cm4gdGhpcy5fX2NvZGU7XG4gIH1cblxuICBnZXQgYXN0KCkge1xuICAgIHJldHVybiB0aGlzLl9fYXN0O1xuICB9XG5cbiAgZ2V0IGZpbGVwYXRoKCkge1xuICAgIHJldHVybiB0aGlzLl9fZmlsZV9wYXRoO1xuICB9XG5cbn1cblxubW9kdWxlLmV4cG9ydHMgPSBTb3VyY2VDb2RlO1xuIl0sInNvdXJjZVJvb3QiOiIvXHUwMDFiWzM5bVx1MDAxYlsxbVx1MDAxYlszNG1jYXN0Ym9yZ1x1MDAxYlszOW1cdTAwMWJbMjJtXHUwMDFiWzkwbShcdTAwMWJbMzltXHUwMDFiWzM0bTAuMC4xMFx1MDAxYlszOW1cdTAwMWJbOTBtKVx1MDAxYlszOW1cdTAwMWJbOTBtL3NyYyJ9
{
"name": "castborg",
"version": "0.0.10",
"version": "0.0.11",
"description": "AST searcher and modifier",

@@ -15,3 +15,4 @@ "main": "index.js",

"devDependencies": {
"azk-dev": "0.0.5"
"azk-dev": "*",
"chalk": "^1.0.0"
},

@@ -18,0 +19,0 @@ "scripts": {

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