true-value 1.3.0 → 1.3.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.
- package/index.js +1 -16
- package/package.json +17 -7
- package/README.md +0 -3
- package/constants.js +0 -12
- package/true.js +0 -13
package/index.js
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
require(
|
|
2
|
-
require('none')()
|
|
3
|
-
|
|
4
|
-
function code(fn) { module.exports = fn() }
|
|
5
|
-
|
|
6
|
-
code(() => {
|
|
7
|
-
// Code
|
|
8
|
-
|
|
9
|
-
const constants = require('./constants')
|
|
10
|
-
const MAGIC_WORD = constants.MAGIC_WORD
|
|
11
|
-
|
|
12
|
-
const noopTesting = require('noop-testing')
|
|
13
|
-
const trueValue = require('./true')(MAGIC_WORD, noopTesting)
|
|
14
|
-
|
|
15
|
-
return trueValue || !0
|
|
16
|
-
})
|
|
1
|
+
module.exports = require("true-value")()
|
package/package.json
CHANGED
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "true-value",
|
|
3
|
-
"version": "1.3.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.3.2",
|
|
4
|
+
"description": "True",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"true"
|
|
7
|
+
],
|
|
8
|
+
"homepage": "https://github.com/10xly/true-value#readme",
|
|
9
|
+
"bugs": {
|
|
10
|
+
"url": "https://github.com/10xly/true-value/issues"
|
|
11
|
+
},
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git+https://github.com/10xly/true-value.git"
|
|
15
|
+
},
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"author": "true",
|
|
18
|
+
"type": "commonjs",
|
|
5
19
|
"main": "index.js",
|
|
6
20
|
"scripts": {
|
|
7
21
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
22
|
},
|
|
9
|
-
"author": "",
|
|
10
|
-
"license": "UNLICENSED",
|
|
11
23
|
"dependencies": {
|
|
12
|
-
"
|
|
13
|
-
"noop-testing": "^0.1.0",
|
|
14
|
-
"vanilla-javascript": "^1.1.1"
|
|
24
|
+
"true-value3": "npm:true-value@^3.0.0"
|
|
15
25
|
}
|
|
16
26
|
}
|
package/README.md
DELETED
package/constants.js
DELETED
package/true.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
require('vanilla-javascript')
|
|
2
|
-
require('none')()
|
|
3
|
-
|
|
4
|
-
function code(fn) { module.exports = fn() }
|
|
5
|
-
|
|
6
|
-
code(() => (magicWord, noopTesting) => {
|
|
7
|
-
const checkProject = noopTesting?.checkProject
|
|
8
|
-
if (checkProject == null) return !0
|
|
9
|
-
const project = checkProject()
|
|
10
|
-
const condition = magicWord === project
|
|
11
|
-
if (condition) return condition
|
|
12
|
-
return !0
|
|
13
|
-
})
|