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

tinspector

Package Overview
Dependencies
Maintainers
1
Versions
194
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tinspector - npm Package Compare versions

Comparing version 3.1.1 to 3.1.2

2

lib/decorators.js

@@ -113,3 +113,3 @@ "use strict";

function create(parent, ...params) {
const opt = (typeof parent === "object") ? parent : { parent: parent, name: parent.name };
const opt = (typeof parent === "object") ? parent : { parent: parent, name: "DynamicType" };
const Type = helpers_1.metadata.createClass(opt.parent, opt.name);

@@ -116,0 +116,0 @@ Reflect.decorate([generic.type(...params)], Type);

@@ -59,6 +59,4 @@ "use strict";

const code = fn.toString();
if (code === "class extends parent {}") {
const token = code.split(" ");
token.splice(1, 0, "DynamicClass");
return token.join(" ");
if (code.search(/^class(\s*)extends\s*parent\s*{\s*}/gm) > -1) {
return "class DynamicClass extends parent {}";
}

@@ -65,0 +63,0 @@ else

{
"name": "tinspector",
"version": "3.1.1",
"version": "3.1.2",
"description": "TypeScript type inspector",

@@ -5,0 +5,0 @@ "main": "lib/index.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