@plumier/reflect
Advanced tools
Comparing version 1.0.3-canary.3 to 1.0.3-canary.6
@@ -21,3 +21,3 @@ import { Class, ClassReflection, FunctionReflection } from "./types"; | ||
declare function parseFunction(fn: Function): FunctionReflection; | ||
declare function parseClass(fn: Class): ClassReflection; | ||
declare const parseClass: (x: Class<any>) => ClassReflection; | ||
export { parseClass, parseFunction, getMethodParameters, getConstructorParameters, getFunctionParameters, getClassMembers }; |
@@ -6,2 +6,3 @@ "use strict"; | ||
const acorn_1 = require("acorn"); | ||
const helpers_1 = require("./helpers"); | ||
const storage_1 = require("./storage"); | ||
@@ -169,3 +170,3 @@ const types_1 = require("./types"); | ||
} | ||
function parseClass(fn) { | ||
function parseClassNoCache(fn) { | ||
const proto = Object.getPrototypeOf(fn); | ||
@@ -180,2 +181,4 @@ return { | ||
} | ||
const cacheStore = new Map(); | ||
const parseClass = helpers_1.useCache(cacheStore, parseClassNoCache, x => x); | ||
exports.parseClass = parseClass; |
{ | ||
"name": "@plumier/reflect", | ||
"version": "1.0.3-canary.3+bac445e", | ||
"version": "1.0.3-canary.6+aca5751", | ||
"description": "Plumier reflection module", | ||
@@ -42,3 +42,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "bac445e8acee4c72e2c4096f74b6341549d80373" | ||
"gitHead": "aca5751382bb81bf264df5fbc7dc27df15943874" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
74750
1401