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

typal

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typal - npm Package Compare versions

Comparing version 1.20.0 to 1.20.1

2

build/lib/Type.js

@@ -348,3 +348,3 @@ const extractTags = require('rexml');

})
if (this.return) lines.push(` * @return {${this.return}}`)
if (this._methodReturn) lines.push(` * @return {${this.return}}`)
if (ws) lines = lines.map(p => `${ws}${p}`)

@@ -351,0 +351,0 @@ return lines

@@ -0,1 +1,7 @@

## 6 August 2019
### [1.20.1](https://github.com/artdecocode/typal/compare/v1.20.0...v1.20.1)
- [fix] Don't specify _void_ return in externs.
## 5 August 2019

@@ -2,0 +8,0 @@

@@ -792,7 +792,7 @@ #!/usr/bin/env node

}
m && (a.A = [m]);
n && (a.A = n.split(/\s*,\s*/));
p && (a.B = p);
m && (a.B = [m]);
n && (a.B = n.split(/\s*,\s*/));
p && (a.v = p);
q && (a.l = !0);
if (!a.B) {
if (!a.v) {
try {

@@ -880,4 +880,4 @@ a.b = gb(a.g);

this.optional = !1;
this.A = [];
this.B = !1;
this.B = [];
this.v = !1;
this.b = null;

@@ -922,3 +922,3 @@ this.args = a;

!0 === t && (a.G = t);
!0 === x && (a.m = x);
!0 === x && (a.v = x);
r && (a.extends = r);

@@ -959,7 +959,7 @@ if (b) {

d && (a.i = d);
Aa && (a.H = Aa);
Aa && (a.m = Aa);
}
function ub(a) {
var b = vb(a);
a.v || b.push(` * @${a.Y}`);
a.w || b.push(` * @${a.Y}`);
b = O(b.join("\n"));

@@ -969,3 +969,3 @@ b += R(a.i, a.name, a.X);

d.push(e);
const f = e.A.map(g => sb(e, g));
const f = e.B.map(g => sb(e, g));
d.push(...f);

@@ -983,6 +983,6 @@ return d;

const c = `${a.extends ? "$" : ""}${a.name}`;
return (void 0 === b ? 0 : b) ? `${a.w}${c}` : c;
return (void 0 === b ? 0 : b) ? `${a.A}${c}` : c;
}
function xb(a) {
return a.v ? `(${a.b.map(b => {
return a.w ? `(${a.b.map(b => {
var {name:c, type:d, optional:e} = b;

@@ -999,3 +999,3 @@ return `${c}${e ? "?" : ""}: ${d}`;

e.push(f);
const g = f.A.map(h => sb(f, h));
const g = f.B.map(h => sb(f, h));
e.push(...g);

@@ -1035,3 +1035,3 @@ return e;

});
a.return && c.push(` * @return {${a.return}}`);
a.m && c.push(` * @return {${a.return}}`);
b && (c = c.map(d => `${b}${d}`));

@@ -1046,21 +1046,21 @@ return c;

this.i = null;
this.m = this.G = this.isConstructor = !1;
this.v = this.G = this.isConstructor = !1;
this.extends = null;
this.B = !1;
this.H = this.b = null;
this.H = !1;
this.m = this.b = null;
}
set v(a) {
set w(a) {
if (!this.b) {
throw Error("Args expected.");
}
this.B = a;
this.H = a;
}
get v() {
return this.B;
get w() {
return this.H;
}
get Z() {
return this.isConstructor || this.G || this.m || this.v;
return this.isConstructor || this.G || this.v || this.w;
}
get return() {
return this.v ? this.H || "void" : null;
return this.w ? this.m || "void" : null;
}

@@ -1078,3 +1078,3 @@ get f() {

get l() {
return this.isConstructor ? "constructor" : this.G ? "interface" : this.m ? "record" : "";
return this.isConstructor ? "constructor" : this.G ? "interface" : this.v ? "record" : "";
}

@@ -1087,7 +1087,7 @@ get X() {

}
get w() {
get A() {
return this.i ? `${this.i}.` : "";
}
get h() {
return `${this.w}${this.name}`;
return `${this.A}${this.name}`;
}

@@ -1110,3 +1110,3 @@ L(a, b, c, d, e) {

c.push(d);
const e = d.A.map(f => Object.assign({}, d, {name:f}));
const e = d.B.map(f => Object.assign({}, d, {name:f}));
c.push(...e);

@@ -1127,3 +1127,3 @@ return c;

a.link = e;
a.w = f || a.from;
a.A = f || a.from;
}

@@ -1135,7 +1135,7 @@ function Cb(a, b = !0) {

constructor() {
this.from = this.name = this.w = "";
this.from = this.name = this.A = "";
this.link = this.J = null;
}
get h() {
return `${this.w}.${this.name}`;
return `${this.A}.${this.name}`;
}

@@ -1214,3 +1214,3 @@ }

l.forEach(p => {
p.v = !0;
p.w = !0;
});

@@ -1229,3 +1229,3 @@ k.push(...l);

g = f.map(k => {
var {name:l, from:m, J:n, link:p, w:q} = k;
var {name:l, from:m, J:n, link:p, A:q} = k;
k = new X;

@@ -1232,0 +1232,0 @@ W(k, "", {name:l, type:`import('${m}').${l}`, P:!0, import:!0, J:n, link:p}, void 0 == q ? void 0 : q);

{
"name": "typal",
"version": "1.20.0",
"version": "1.20.1",
"description": "Organises TypeDefs By Placing Them Into Types.Xml File To Be Embedded Into Source Code Compatible With VSCode And Google Closure Compiler, Generates Externs And Allows To Place Documentation In README Markdown.",

@@ -5,0 +5,0 @@ "main": "build/index.js",

@@ -348,3 +348,3 @@ import extractTags from 'rexml'

})
if (this.return) lines.push(` * @return {${this.return}}`)
if (this._methodReturn) lines.push(` * @return {${this.return}}`)
if (ws) lines = lines.map(p => `${ws}${p}`)

@@ -351,0 +351,0 @@ return lines

Sorry, the diff of this file is not supported yet

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