authly-me 1.0.0 → 1.0.2

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.
Files changed (3) hide show
  1. package/index.js +10 -2
  2. package/package.json +1 -1
  3. package/config.js +0 -7
package/index.js CHANGED
@@ -1,5 +1,13 @@
1
+ // Authly - A Node.js SDK for Authly API
2
+
1
3
  const axios = require('axios');
2
- const config = require('./config');
4
+
5
+ // ------------- Configurations -------------
6
+ const app_key_header = "App-Key";
7
+ const config = {
8
+ app_key_header
9
+ };
10
+ // ---------------------------------------------
3
11
 
4
12
  class Authly {
5
13
 
@@ -123,7 +131,7 @@ class Authly {
123
131
  throw new Error('Email is required');
124
132
  }
125
133
 
126
- if (!private_data || private_data === '' || private_data.trim() === '') {
134
+ if (!private_data) {
127
135
  throw new Error('Private Data is required');
128
136
  }
129
137
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "authly-me",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/config.js DELETED
@@ -1,7 +0,0 @@
1
- const app_key_header = "App-Key";
2
-
3
- const config = {
4
- app_key_header
5
- };
6
-
7
- export default config;