string-trim-spaces-only 2.8.21 → 2.9.0
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/CHANGELOG.md +13 -0
- package/LICENSE +1 -1
- package/README.md +7 -4
- package/dist/string-trim-spaces-only.cjs.js +1 -1
- package/dist/string-trim-spaces-only.dev.umd.js +1 -1
- package/dist/string-trim-spaces-only.esm.js +1 -1
- package/dist/string-trim-spaces-only.umd.js +1 -1
- package/examples/api.json +1 -1
- package/package.json +16 -16
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,19 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 2.9.0 (2020-11-28)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- Fix the Create New Issue URLs ([c5ee4a6](https://git.sr.ht/~royston/codsen/commits/c5ee4a61e9436099b0e20d20bca043c1b2c93f55))
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
- add granular options to trim (or not) each whitespace type ([c12e5b3](https://git.sr.ht/~royston/codsen/commits/c12e5b3c1a9ae41fb80a38591dad6ea02ffc6153))
|
|
15
|
+
- Add one more tag before which there will be a line break ([4f00871](https://git.sr.ht/~royston/codsen/commits/4f008715dcc2de7b2b52b67ce2e27728d5ffec37))
|
|
16
|
+
- Initial release ([4f35bfb](https://git.sr.ht/~royston/codsen/commits/4f35bfb167e54b1a0e5e8f01871293b262c67a76))
|
|
17
|
+
- opts.classicTrim, returns plain object now ([0fe61a1](https://git.sr.ht/~royston/codsen/commits/0fe61a1a1f52e8490b492c646a5fa9d70bc87aad))
|
|
18
|
+
|
|
6
19
|
## 2.8.0 (2019-09-11)
|
|
7
20
|
|
|
8
21
|
### Features
|
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2010-2020 Roy Revelt and other contributors
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
6
|
a copy of this software and associated documentation files (the
|
package/README.md
CHANGED
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
<img src="https://img.shields.io/badge/-npm-blue?style=flat-square" alt="page on npm">
|
|
8
8
|
</a>
|
|
9
9
|
<a href="https://codsen.com/os/string-trim-spaces-only" rel="nofollow noreferrer noopener">
|
|
10
|
-
<img src="https://img.shields.io/badge/-
|
|
10
|
+
<img src="https://img.shields.io/badge/-codsen-blue?style=flat-square" alt="page on codsen.com">
|
|
11
11
|
</a>
|
|
12
|
-
<a href="https://
|
|
13
|
-
<img src="https://img.shields.io/badge/-
|
|
12
|
+
<a href="https://git.sr.ht/~royston/codsen/tree/master/packages/string-trim-spaces-only" rel="nofollow noreferrer noopener">
|
|
13
|
+
<img src="https://img.shields.io/badge/-sourcehut-blue?style=flat-square" alt="page on sourcehut">
|
|
14
14
|
</a>
|
|
15
15
|
<a href="https://npmcharts.com/compare/string-trim-spaces-only?interval=30" rel="nofollow noreferrer noopener" target="_blank">
|
|
16
16
|
<img src="https://img.shields.io/npm/dm/string-trim-spaces-only.svg?style=flat-square" alt="Downloads per month">
|
|
@@ -19,6 +19,9 @@
|
|
|
19
19
|
<img src="https://img.shields.io/badge/code_style-prettier-brightgreen.svg?style=flat-square" alt="Code style: prettier">
|
|
20
20
|
</a>
|
|
21
21
|
<img src="https://img.shields.io/badge/licence-MIT-brightgreen.svg?style=flat-square" alt="MIT License">
|
|
22
|
+
<a href="https://liberamanifesto.com" rel="nofollow noreferrer noopener" target="_blank">
|
|
23
|
+
<img src="https://img.shields.io/badge/libera-manifesto-lightgrey.svg?style=flat-square" alt="libera manifesto">
|
|
24
|
+
</a>
|
|
22
25
|
</div>
|
|
23
26
|
|
|
24
27
|
## Install
|
|
@@ -58,6 +61,6 @@ Please [visit codsen.com](https://codsen.com/os/string-trim-spaces-only/) for a
|
|
|
58
61
|
|
|
59
62
|
MIT License
|
|
60
63
|
|
|
61
|
-
Copyright (c)
|
|
64
|
+
Copyright (c) 2010-2020 Roy Revelt and other contributors
|
|
62
65
|
|
|
63
66
|
<img src="https://codsen.com/images/png-codsen-ok.png" width="98" alt="ok" align="center"> <img src="https://codsen.com/images/png-codsen-1.png" width="148" alt="codsen" align="center"> <img src="https://codsen.com/images/png-codsen-star-small.png" width="32" alt="star" align="center">
|
package/examples/api.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"_quickTake.js":{"title":"Quick Take","content":"import
|
|
1
|
+
{"_quickTake.js":{"title":"Quick Take","content":"import { strict as assert } from \"assert\";\nimport trimSpaces from \"string-trim-spaces-only\";\n\nassert.deepEqual(trimSpaces(\" aaa \"), {\n res: \"aaa\",\n ranges: [\n [0, 2],\n [5, 8],\n ],\n});\n\nassert.deepEqual(trimSpaces(\" \\t zz \\n \"), {\n res: \"\\t zz \\n\",\n ranges: [\n [0, 3],\n [12, 16],\n ],\n});"}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "string-trim-spaces-only",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.0",
|
|
4
4
|
"description": "Like String.trim() but you can choose granularly what to trim",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"characters",
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"trim"
|
|
16
16
|
],
|
|
17
17
|
"homepage": "https://codsen.com/os/string-trim-spaces-only/",
|
|
18
|
-
"repository": "https://
|
|
18
|
+
"repository": "https://git.sr.ht/~royston/codsen",
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"author": {
|
|
21
21
|
"name": "Roy Revelt",
|
|
22
22
|
"email": "roy@codsen.com",
|
|
23
|
-
"url": "codsen.com"
|
|
23
|
+
"url": "https://codsen.com"
|
|
24
24
|
},
|
|
25
25
|
"main": "dist/string-trim-spaces-only.cjs.js",
|
|
26
26
|
"module": "dist/string-trim-spaces-only.esm.js",
|
|
@@ -96,25 +96,25 @@
|
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"devDependencies": {
|
|
99
|
-
"@babel/core": "^7.
|
|
100
|
-
"@babel/plugin-proposal-class-properties": "^7.
|
|
101
|
-
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.
|
|
102
|
-
"@babel/plugin-proposal-object-rest-spread": "^7.
|
|
103
|
-
"@babel/plugin-proposal-optional-chaining": "^7.
|
|
104
|
-
"@babel/preset-env": "^7.
|
|
99
|
+
"@babel/core": "^7.12.7",
|
|
100
|
+
"@babel/plugin-proposal-class-properties": "^7.12.1",
|
|
101
|
+
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.12.1",
|
|
102
|
+
"@babel/plugin-proposal-object-rest-spread": "^7.12.1",
|
|
103
|
+
"@babel/plugin-proposal-optional-chaining": "^7.12.7",
|
|
104
|
+
"@babel/preset-env": "^7.12.7",
|
|
105
105
|
"@rollup/plugin-babel": "^5.2.1",
|
|
106
|
-
"@rollup/plugin-commonjs": "^
|
|
107
|
-
"@rollup/plugin-node-resolve": "^
|
|
106
|
+
"@rollup/plugin-commonjs": "^16.0.0",
|
|
107
|
+
"@rollup/plugin-node-resolve": "^10.0.0",
|
|
108
108
|
"@rollup/plugin-strip": "^2.0.0",
|
|
109
109
|
"benchmark": "^2.1.4",
|
|
110
|
-
"eslint": "^7.
|
|
111
|
-
"lect": "^0.
|
|
112
|
-
"rollup": "^2.
|
|
110
|
+
"eslint": "^7.14.0",
|
|
111
|
+
"lect": "^0.15.0",
|
|
112
|
+
"rollup": "^2.33.3",
|
|
113
113
|
"rollup-plugin-ascii": "^0.0.3",
|
|
114
114
|
"rollup-plugin-banner": "^0.2.1",
|
|
115
|
-
"rollup-plugin-cleanup": "^3.
|
|
115
|
+
"rollup-plugin-cleanup": "^3.2.1",
|
|
116
116
|
"rollup-plugin-terser": "^7.0.2",
|
|
117
|
-
"tap": "^14.
|
|
117
|
+
"tap": "^14.11.0",
|
|
118
118
|
"tsd": "^0.13.1"
|
|
119
119
|
}
|
|
120
120
|
}
|