Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NOT FO MERGE!] Nodefy #9

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
360 changes: 0 additions & 360 deletions dist/gostCrypto.dist.js

This file was deleted.

139 changes: 0 additions & 139 deletions dist/gostEngine.dist.js

This file was deleted.

4 changes: 2 additions & 2 deletions gostASN1.js → lib/gostASN1.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
*
*/ // <editor-fold defaultstate="collapsed">
if (typeof define === 'function' && define.amd) {
define(['gostCrypto', 'gostCoding', 'gostSecurity'], factory);
define(['./gostCrypto', './gostCoding', './gostSecurity'], factory);
} else if (typeof exports === 'object') {
module.exports = factory(require('gostCrypto'), require('gostCoding'), require('gostSecurity'));
module.exports = factory(require('./gostCrypto'), require('./gostCoding'), require('./gostSecurity'));
} else {
root.GostASN1 = factory(root.gostCrypto, root.GostCoding, root.GostSecurity);
}
Expand Down
4 changes: 2 additions & 2 deletions gostCMS.js → lib/gostCMS.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
*
*/ // <editor-fold defaultstate="collapsed">
if (typeof define === 'function' && define.amd) {
define(['gostCrypto', 'gostASN1', 'gostCert'], factory);
define(['./gostCrypto', './gostASN1', './gostCert'], factory);
} else if (typeof exports === 'object') {
module.exports = factory(require('gostCrypto'), require('gostASN1'), require('gostCert'));
module.exports = factory(require('./gostCrypto'), require('./gostASN1'), require('./gostCert'));
} else {
root.GostCMS = factory(root.gostCrypto, root.GostASN1, root.GostCert);
}
Expand Down
4 changes: 2 additions & 2 deletions gostCert.js → lib/gostCert.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
*
*/ // <editor-fold defaultstate="collapsed">
if (typeof define === 'function' && define.amd) {
define(['gostCrypto', 'gostASN1'], factory);
define(['./gostCrypto', './gostASN1'], factory);
} else if (typeof exports === 'object') {
module.exports = factory(require('gostCrypto'), require('gostASN1'));
module.exports = factory(require('./gostCrypto'), require('./gostASN1'));
} else {
root.GostCert = factory(root.gostCrypto, root.GostASN1);
}
Expand Down
4 changes: 2 additions & 2 deletions gostCipher.js → lib/gostCipher.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
*
*/ // <editor-fold defaultstate="collapsed">
if (typeof define === 'function' && define.amd) {
define(['gostRandom'], factory);
define(['./gostRandom'], factory);
} else if (typeof exports === 'object') {
module.exports = factory(require('gostRandom'));
module.exports = factory(require('./gostRandom'));
} else {
root.GostCipher = factory(root.GostRandom);
}
Expand Down
4 changes: 2 additions & 2 deletions gostCipher.test.js → lib/gostCipher.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
(function (root, factory) {

if (typeof define === 'function' && define.amd) {
define(['gostCoding', 'gostCipher'], factory);
define(['./gostCoding', './gostCipher'], factory);
} else if (typeof exports === 'object') {
module.exports = factory(require('gostCoding'), require('gostCipher'));
module.exports = factory(require('./gostCoding'), require('./gostCipher'));
} else {
if (typeof importScripts !== 'undefined') {
if (!root.onmessage)
Expand Down
4 changes: 2 additions & 2 deletions gostCoding.js → lib/gostCoding.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
*
*/ // <editor-fold defaultstate="collapsed">
if (typeof define === 'function' && define.amd) {
define(['gostCrypto'], factory);
define(['./gostCrypto'], factory);
} else if (typeof exports === 'object') {
module.exports = factory(require('gostCrypto'));
module.exports = factory(require('./gostCrypto'));
} else {
root.GostCoding = factory(root.gostCrypto);
}
Expand Down
4 changes: 2 additions & 2 deletions gostCrypto.js → lib/gostCrypto.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
*
*/ // <editor-fold defaultstate="collapsed">
if (typeof define === 'function' && define.amd) {
define(['gostRandom'], factory);
define(['./gostRandom'], factory);
} else if (typeof exports === 'object') {
module.exports = factory(require('gostRandom'));
module.exports = factory(require('./gostRandom'));
} else {
root.gostCrypto = factory(root.GostRandom);
}
Expand Down
4 changes: 2 additions & 2 deletions gostDigest.js → lib/gostDigest.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
*
*/ // <editor-fold defaultstate="collapsed">
if (typeof define === 'function' && define.amd) {
define(['gostRandom', 'gostCipher'], factory);
define(['./gostRandom', './gostCipher'], factory);
} else if (typeof exports === 'object') {
module.exports = factory(require('gostRandom'), require('gostCipher'));
module.exports = factory(require('./gostRandom'), require('./gostCipher'));
} else {
root.GostDigest = factory(root.GostRandom, root.GostCipher);
}
Expand Down
4 changes: 2 additions & 2 deletions gostDigest.test.js → lib/gostDigest.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@

(function (root, factory) {
if (typeof define === 'function' && define.amd) {
define(['gostCoding', 'gostDigest'], factory);
define(['./gostCoding', './gostDigest'], factory);
} else if (typeof exports === 'object') {
module.exports = factory(require('gostCoding'), require('gostCipher'), require('gostDigest'));
module.exports = factory(require('./gostCoding'), require('./gostCipher'), require('./gostDigest'));
} else {
if (typeof importScripts !== 'undefined') {
if (!root.onmessage)
Expand Down
4 changes: 2 additions & 2 deletions gostEngine.js → lib/gostEngine.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
*
*/ // <editor-fold defaultstate="collapsed">
if (typeof define === 'function' && define.amd) {
define(['gostRandom', 'gostCipher', 'gostDigest', 'gostSign'], factory);
define(['./gostRandom', './gostCipher', './gostDigest', './gostSign'], factory);
} else if (typeof exports === 'object') {
module.exports = factory(require('gostRandom'), require('gostCipher'), require('gostDigest'), require('gostSign'));
module.exports = factory(require('./gostRandom'), require('./gostCipher'), require('./gostDigest'), require('./gostSign'));
} else {
if (typeof importScripts !== 'undefined') {
if (!(root.GostRandom && root.GostCipher && root.GostDigest && root.GostSign))
Expand Down
4 changes: 2 additions & 2 deletions gostKeys.js → lib/gostKeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
*
*/ // <editor-fold defaultstate="collapsed">
if (typeof define === 'function' && define.amd) {
define(['gostCrypto', 'gostASN1', 'gostCert', 'gostCMS'], factory);
define(['./gostCrypto', './gostASN1', './gostCert', './gostCMS'], factory);
} else if (typeof exports === 'object') {
module.exports = factory(require('gostCrypto'), require('gostASN1'), require('gostCert'), require('gostCMS'));
module.exports = factory(require('./gostCrypto'), require('./gostASN1'), require('./gostCert'), require('./gostCMS'));
} else {
root.GostKeys = factory(root.gostCrypto, root.GostASN1, root.GostCert, root.GostCMS);
}
Expand Down
2 changes: 1 addition & 1 deletion gostRandom.js → lib/gostRandom.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
}
};

if (typeof document !== 'undefiend') {
if (typeof document !== 'undefined') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

лол, js такой js :-)

try {
// Mouse move event to fill random array
document.addEventListener('mousemove', function (e) {
Expand Down
4 changes: 2 additions & 2 deletions gostSecurity.js → lib/gostSecurity.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
*
*/ // <editor-fold defaultstate="collapsed">
if (typeof define === 'function' && define.amd) {
define(['gostCrypto'], factory);
define(['./gostCrypto'], factory);
} else if (typeof exports === 'object') {
module.exports = factory(require('gostCrypto'));
module.exports = factory(require('./gostCrypto'));
} else {
root.GostSecurity = factory(root.gostCrypto);
}
Expand Down
4 changes: 2 additions & 2 deletions gostSign.js → lib/gostSign.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
*
*/ // <editor-fold defaultstate="collapsed">
if (typeof define === 'function' && define.amd) {
define(['gostRandom', 'gostDigest'], factory);
define(['./gostRandom', './gostDigest'], factory);
} else if (typeof exports === 'object') {
module.exports = factory(require('gostRandom'), require('gostDigest'));
module.exports = factory(require('./gostRandom'), require('./gostDigest'));
} else {
root.GostSign = factory(root.GostRandom, root.GostDigest);
}
Expand Down
4 changes: 2 additions & 2 deletions gostSign.test.js → lib/gostSign.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@

(function(root, factory) {
if (typeof define === 'function' && define.amd) {
define(['gostCoding', 'gostSign'], factory);
define(['./gostCoding', './gostSign'], factory);
} else if (typeof exports === 'object') {
module.exports = factory(require('gostCoding'), require('gostCipher'), require('gostDigest'), require('gostSign'));
module.exports = factory(require('./gostCoding'), require('./gostCipher'), require('./gostDigest'), require('./gostSign'));
} else {
if (typeof importScripts !== 'undefined') {
if (!root.onmessage)
Expand Down
4 changes: 2 additions & 2 deletions gostViewer.js → lib/gostViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@

(function (root, factory) {
if (typeof define === 'function' && define.amd) {
define(['gostCrypto', 'gostCoding', 'gostSecurity', 'gostASN1'], factory);
define(['./gostCrypto', './gostCoding', './gostSecurity', './gostASN1'], factory);
} else if (typeof exports === 'object') {
module.exports = factory(require('gostCrypto'), require('gostCoding'), require('gostSecurity'), require('gostASN1'));
module.exports = factory(require('./gostCrypto'), require('./gostCoding'), require('./gostSecurity'), require('./gostASN1'));
} else {
root.gostViewer = factory(root.gostCrypto, root.gostCoding, root.gostSecurity, root.gostASN1);
}
Expand Down
Loading