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

cor-lang

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cor-lang - npm Package Compare versions

Comparing version 0.11.0 to 0.11.1

2

dist/crl.js

@@ -578,3 +578,3 @@ /*

// schedule the the sender coroutine
return new timeout(0);
return timeout(0);
}

@@ -581,0 +581,0 @@ }

@@ -894,3 +894,3 @@ # Documentation

* The transformer is a function that transfor values to send though the channel.
* The transformer is a function that transfor values to send through the channel.

@@ -923,5 +923,5 @@ The created channels are objects that can be closed using `.close()` method, to check whether is closed or not use `.closed` property.

go {
for num in 1:3 {
ch <- num
}
ch <- 1
ch <- 2
ch <- 3
}

@@ -937,2 +937,3 @@

4
6
---

@@ -939,0 +940,0 @@ ```

{
"author" : "Yosbel Marin",
"name" : "cor-lang",
"version" : "0.11.0",
"version" : "0.11.1",
"license" : "BSD",

@@ -6,0 +6,0 @@ "description" : "The Language of the Web",

@@ -20,3 +20,3 @@ (function(){

var
comp = new cor.Compiler(src),
comp = new cor.Compiler(src, filename),
ast = comp.parse(),

@@ -23,0 +23,0 @@ js = comp.compile(ast);

@@ -547,3 +547,3 @@ (function(){

// schedule the the sender coroutine
return new timeout(0);
return timeout(0);
}

@@ -550,0 +550,0 @@ }

@@ -544,4 +544,23 @@ (function(cor){

ret = '',
basen = basename(this.yy.env.filename),
exported = this.yy.env.getExported();
function basename(filename) {
var parsed = /([a-zA-Z-0-9_\-]*)([a-zA-A-0-9_\-\.]*)$/.exec(filename);
return parsed ? parsed[1] : '';
}
function isCapitalized(txt) {
return /^[A-Z]/.test(txt);
}
if (isCapitalized(basen)) {
if (exported.hasOwnProperty(basen)) {
return 'module.exports = ' + basen + ';';
}
else {
this.error('undeclared default exported value', 1);
}
}
for (name in exported) {

@@ -894,4 +913,2 @@ if (name !== this.initializerName) {

rCapitalLetter: /^[A-Z]/,
rClearName: /[^\w]/,

@@ -927,9 +944,4 @@

route = this.route,
alias = this.alias || this.extractedAlias,
suffix = '';
alias = this.alias || this.extractedAlias;
if (this.rCapitalLetter.test(this.extractedAlias)) {
suffix = '.' + alias;
}
ch[0].children = 'require(';

@@ -950,3 +962,3 @@

this.targetNode,
new yy.Lit(')' + suffix + ';', ch[1].lineno)
new yy.Lit(');', ch[1].lineno)
];

@@ -953,0 +965,0 @@ }

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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