true-value 1.3.1 → 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 CHANGED
@@ -1,13 +1 @@
1
- require('vanilla-javascript')
2
- require('vapor-js-npm')
3
- require('none')()
4
-
5
- const noopTesting = require('noop-testing')
6
- const not = require('not')
7
- const zr0 = require('integer-value-positive-zero')
8
-
9
- const constants = require('./constants')
10
- const MAGIC_WORD = constants.MAGIC_WORD
11
- const trueValue = require('./true')(MAGIC_WORD, noopTesting)
12
-
13
- module.exports = trueValue || not(zr0)()
1
+ module.exports = require("true-value")()
package/package.json CHANGED
@@ -1,27 +1,26 @@
1
1
  {
2
2
  "name": "true-value",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
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
- "integer-value-positive-zero": "^1.0.1",
13
- "is-equal-to": "^1.1.2",
14
- "is-nil": "^1.0.1",
15
- "none": "^1.0.0",
16
- "noop-testing": "^0.1.0",
17
- "not": "^0.1.0",
18
- "vanilla-javascript": "^1.1.1",
19
- "vapor-js-npm": "^1.4.6"
20
- },
21
- "homepage": "https://github.com/tj-commits/true-value",
22
- "repository": {
23
- "url": "git+https://github.com/tj-commits/true-value.git",
24
- "type": "git"
25
- },
26
- "bugs": "https://github.com/tj-commits/true-value/issues"
24
+ "true-value3": "npm:true-value@^3.0.0"
25
+ }
27
26
  }
package/README.md DELETED
@@ -1,20 +0,0 @@
1
- # True-Value
2
-
3
- What if JavaScript changed the keyword from `true` to something like `yes` or `yea` or `totally`?
4
-
5
- Chaos.
6
-
7
- That is what `true-value` is for.
8
-
9
- ## Usage
10
- ```javascript
11
- const trueValue = require('true-value')
12
- console.log(trueValue) // true
13
- ```
14
-
15
- ## Related
16
- Make sure to check out the sister project, [FalseJS](https://github.com/tj-commits/falsejs)!
17
- Related:
18
- - [falsejs](https://github.com/tj-commits/falsejs)
19
- - [true](https://github.com/mde/true)
20
- - [false](https://github.com/mde/false)
package/constants.js DELETED
@@ -1,9 +0,0 @@
1
- require('vanilla-javascript')
2
- require('vapor-js-npm')
3
- require('none')()
4
-
5
- const MAGIC_WORD = "no-op-pkg works"
6
-
7
- module.exports = {
8
- MAGIC_WORD
9
- }
package/true.js DELETED
@@ -1,17 +0,0 @@
1
- require('vanilla-javascript')
2
- require('vapor-js-npm')
3
- require('none')()
4
-
5
- const not = require('not')
6
- const zr0 = require('integer-value-positive-zero')
7
- const isEqual = require('is-equal-to')
8
- const isNil = require('is-nil')
9
-
10
- module.exports = (magicWord, noopTesting) => {
11
- const checkProject = noopTesting?.checkProject
12
- if (isNil(checkProject)) return not(zr0)()
13
- const project = checkProject()
14
- const condition = isEqual(magicWord, project)
15
- if (condition) return condition
16
- return not(zr0)()
17
- }