Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
different toString patch
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasvlevi committed Apr 29, 2022
1 parent cae7de6 commit 0df2ed5
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
## Installation
### CDN :
```html
<script src="https://cdn.jsdelivr.net/gh/matiasvlevi/dann@v2.4.1d/build/dann.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/matiasvlevi/dann@v2.4.1e/build/dann.min.js"></script>
```
### Node :
```
Expand Down
6 changes: 3 additions & 3 deletions build/dann.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*! Dann.js */
const isBrowser = typeof process !== 'object';
const VERSION = 'v2.4.1d';
const VERSION = 'v2.4.1e';

/*
* Undisplayed documentation
Expand Down Expand Up @@ -2894,7 +2894,7 @@ Dann.prototype.toFunction = function toFunction(name = 'myDannFunction') {
for (let i = 1; i < this.Layers.length; i++) {
let actname = this.Layers[i].actname;
if (i !== 0) {
let actfunc = toES6(minify(activations[actname].toString()));
let actfunc = toES6(activations[actname].toString());
let minfunction = '';
for (let u = 0; u < actfunc.length; u++) {
minfunction += actfunc[u];
Expand Down Expand Up @@ -3028,7 +3028,7 @@ function toES6(fn) {
if (isES6(fn)) return fn;

let args = fn.match(/\(.*?\)/gm)[0];
let matches = fn.match(/{.*?}/);
let matches = fn.split('\r').join('').split('\n').join('').match(/{.*?}/);
let implementation = '';

if (matches !== null) {
Expand Down
2 changes: 1 addition & 1 deletion build/dann.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"_from": "dannjs",
"_id": "dannjs@2.4.1d",
"_id": "dannjs@2.4.1e",
"_inBundle": false,
"_integrity": "sha512-+Do7tE1EtLn/UMqyIy0V6dgLo43Wq6tj2vAY8oZTMHAY+ysYLJ2sT32H9DgZViL/B59XTIKN6BO8WEbn5pv8XA==",
"_location": "/dannjs",
Expand Down Expand Up @@ -56,7 +56,7 @@
"doc-server": "node docs/serve.js",
"makechangelog": "grunt makechangelog"
},
"version": "2.4.1d",
"version": "2.4.1e",
"keywords": [
"dann",
"dannjs",
Expand Down
4 changes: 2 additions & 2 deletions src/classes/dann/methods/Share/toFunction.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Dann.prototype.toFunction = function toFunction(name = 'myDannFunction') {
for (let i = 1; i < this.Layers.length; i++) {
let actname = this.Layers[i].actname;
if (i !== 0) {
let actfunc = toES6(minify(activations[actname].toString()));
let actfunc = toES6(activations[actname].toString());
let minfunction = '';
for (let u = 0; u < actfunc.length; u++) {
minfunction += actfunc[u];
Expand Down Expand Up @@ -171,7 +171,7 @@ function toES6(fn) {
if (isES6(fn)) return fn;

let args = fn.match(/\(.*?\)/gm)[0];
let matches = fn.match(/{.*?}/);
let matches = fn.split('\r').join('').split('\n').join('').match(/{.*?}/);
let implementation = '';

if (matches !== null) {
Expand Down
2 changes: 1 addition & 1 deletion src/io/head.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/*! Dann.js */
const isBrowser = typeof process !== 'object';
const VERSION = 'v2.4.1d';
const VERSION = 'v2.4.1e';
2 changes: 1 addition & 1 deletion test/manual-tests/browser/binarycount-example/browser.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<header class="main-header" style="text-align: left;">
<div class="content" style="top:16px;margin:0;">
<div class="project-title" style="transition: none;position:absolute;padding:0px;margin-left: 30px">
<h1 class="project-name">Dannjs</h1> <span class="project-version">2.4.1d</span>
<h1 class="project-name">Dannjs</h1> <span class="project-version">2.4.1e</span>
<h3 style="margin-top:0px;margin-left:7px;font-size: 11px;">Browser Test</h3>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion test/manual-tests/browser/empty-example/browser.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<header class="main-header" style="text-align: left;">
<div class="content" style="top:16px;margin:0;">
<div class="project-title" style="transition: none;position:absolute;padding:0px;margin-left: 30px">
<h1 class="project-name">Dannjs</h1> <span class="project-version">2.4.1d</span>
<h1 class="project-name">Dannjs</h1> <span class="project-version">2.4.1e</span>
<h3 style="margin-top:0px;margin-left:7px;font-size: 11px;">Browser Test</h3>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion test/manual-tests/browser/xor-example/browser.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<header class="main-header" style="text-align: left;">
<div class="content" style="top:16px;margin:0;">
<div class="project-title" style="transition: none;position:absolute;padding:0px;margin-left: 30px">
<h1 class="project-name">Dannjs</h1> <span class="project-version">2.4.1d</span>
<h1 class="project-name">Dannjs</h1> <span class="project-version">2.4.1e</span>
<h3 style="margin-top:0px;margin-left:7px;font-size: 11px;">Browser Test</h3>
</div>
</div>
Expand Down

0 comments on commit 0df2ed5

Please sign in to comment.