scrypt-ts-transpiler
Advanced tools
Comparing version 1.2.3 to 1.2.4
@@ -9,1 +9,2 @@ import ts from 'typescript'; | ||
export declare function findReturnStatement(node: ts.Node): ts.Node; | ||
export declare function findBuildChangeOutputExpression(node: ts.Node): ts.Node; |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
@@ -6,5 +29,5 @@ return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.findReturnStatement = exports.alterFileExt = exports.isNumberLiteralExpr = exports.hasModifier = exports.number2hex = exports.getBuiltInType = exports.getPreimage = exports.signTx = void 0; | ||
exports.findBuildChangeOutputExpression = exports.findReturnStatement = exports.alterFileExt = exports.isNumberLiteralExpr = exports.hasModifier = exports.number2hex = exports.getBuiltInType = exports.getPreimage = exports.signTx = void 0; | ||
const path_1 = __importDefault(require("path")); | ||
const typescript_1 = __importDefault(require("typescript")); | ||
const typescript_1 = __importStar(require("typescript")); | ||
var scryptlib_1 = require("scryptlib"); | ||
@@ -92,2 +115,22 @@ Object.defineProperty(exports, "signTx", { enumerable: true, get: function () { return scryptlib_1.signTx; } }); | ||
exports.findReturnStatement = findReturnStatement; | ||
function findBuildChangeOutputExpression(node) { | ||
let res = undefined; | ||
function visit(node) { | ||
if (res) { | ||
return; | ||
} | ||
if ((0, typescript_1.isPropertyAccessExpression)(node)) { | ||
const expr = node; | ||
const name = expr.name.getText(); | ||
if (name === 'buildChangeOutput') { | ||
res = expr; | ||
return; | ||
} | ||
} | ||
typescript_1.default.forEachChild(node, visit); | ||
} | ||
visit(node); | ||
return res; | ||
} | ||
exports.findBuildChangeOutputExpression = findBuildChangeOutputExpression; | ||
//# sourceMappingURL=utils.js.map |
{ | ||
"name": "scrypt-ts-transpiler", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "", | ||
@@ -41,5 +41,5 @@ "main": "./dist/index.js", | ||
"rimraf": "^5.0.1", | ||
"scrypt-ts": "^1.2.0", | ||
"scrypt-ts": "^1.3.7", | ||
"ts-node": "^10.9.1" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
152843
3294
4