@trenskow/caseit 1.4.1 → 1.4.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.
Files changed (2) hide show
  1. package/index.js +2 -2
  2. package/package.json +29 -29
package/index.js CHANGED
@@ -16,7 +16,7 @@ const caseit = function(input, type = 'camel') {
16
16
  throw new TypeError(`Type must either be ${supported.slice(0, -1).join(', ')} or ${supported.slice(-1)[0]}.`);
17
17
  }
18
18
 
19
- const words = exports.words(input)
19
+ const words = caseit.words(input)
20
20
  .map((key, idx) => {
21
21
  switch (type) {
22
22
  case 'camel':
@@ -49,7 +49,7 @@ caseit.words = function(input) {
49
49
 
50
50
  caseit.detect = function(input) {
51
51
  return supported
52
- .filter((type) => exports(input, type) === input);
52
+ .filter((type) => caseit(input, type) === input);
53
53
  };
54
54
 
55
55
  caseit.supported = supported;
package/package.json CHANGED
@@ -1,31 +1,31 @@
1
1
  {
2
- "name": "@trenskow/caseit",
3
- "version": "1.4.1",
4
- "description": "Small library for converting between different casing.",
5
- "main": "index.js",
6
- "type": "module",
7
- "scripts": {
8
- "test": "echo \"Error: no test specified\" && exit 1"
9
- },
10
- "repository": {
11
- "type": "git",
12
- "url": "git+https://github.com/trenskow/caseit.git"
13
- },
14
- "keywords": [
15
- "case",
16
- "string",
17
- "convert"
18
- ],
19
- "author": "Kristian Trenskow <trenskow@me.com>",
20
- "license": "BSD-2-Clause",
21
- "bugs": {
22
- "url": "https://github.com/trenskow/caseit/issues"
23
- },
24
- "homepage": "https://github.com/trenskow/caseit#readme",
25
- "devDependencies": {
26
- "@eslint/eslintrc": "^3.1.0",
27
- "@eslint/js": "^9.13.0",
28
- "eslint": "^9.13.0",
29
- "globals": "^15.11.0"
30
- }
2
+ "name": "@trenskow/caseit",
3
+ "version": "1.4.3",
4
+ "description": "Small library for converting between different casing.",
5
+ "main": "index.js",
6
+ "type": "module",
7
+ "scripts": {
8
+ "test": "echo \"Error: no test specified\" && exit 1"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/trenskow/caseit.git"
13
+ },
14
+ "keywords": [
15
+ "case",
16
+ "string",
17
+ "convert"
18
+ ],
19
+ "author": "Kristian Trenskow <trenskow@me.com>",
20
+ "license": "BSD-2-Clause",
21
+ "bugs": {
22
+ "url": "https://github.com/trenskow/caseit/issues"
23
+ },
24
+ "homepage": "https://github.com/trenskow/caseit#readme",
25
+ "devDependencies": {
26
+ "@eslint/eslintrc": "^3.1.0",
27
+ "@eslint/js": "^9.13.0",
28
+ "eslint": "^9.13.0",
29
+ "globals": "^15.11.0"
30
+ }
31
31
  }