@stdlib/string-ends-with 0.1.0 → 0.2.1

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/NOTICE CHANGED
@@ -1 +1 @@
1
- Copyright (c) 2016-2023 The Stdlib Authors.
1
+ Copyright (c) 2016-2024 The Stdlib Authors.
package/README.md CHANGED
@@ -113,7 +113,7 @@ var bool = endsWith( str, '' );
113
113
 
114
114
  - The function requires string values for the first and second arguments and requires that the `len` argument is an integer value.
115
115
  - The function does **not** clamp positive `len` values to the end of the input string.
116
- - Except when provided an empty `search` string, the function **always** returns `false` is a `len` resolves to a starting search position which exceeds the bounds of the input string.
116
+ - Except when provided an empty `search` string, the function **always** returns `false` if `len` resolves to a starting search position which exceeds the bounds of the input string.
117
117
 
118
118
  </section>
119
119
 
@@ -188,7 +188,7 @@ See [LICENSE][stdlib-license].
188
188
 
189
189
  ## Copyright
190
190
 
191
- Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
191
+ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
192
192
 
193
193
  </section>
194
194
 
@@ -203,8 +203,8 @@ Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
203
203
  [npm-image]: http://img.shields.io/npm/v/@stdlib/string-ends-with.svg
204
204
  [npm-url]: https://npmjs.org/package/@stdlib/string-ends-with
205
205
 
206
- [test-image]: https://github.com/stdlib-js/string-ends-with/actions/workflows/test.yml/badge.svg?branch=v0.1.0
207
- [test-url]: https://github.com/stdlib-js/string-ends-with/actions/workflows/test.yml?query=branch:v0.1.0
206
+ [test-image]: https://github.com/stdlib-js/string-ends-with/actions/workflows/test.yml/badge.svg?branch=v0.2.1
207
+ [test-url]: https://github.com/stdlib-js/string-ends-with/actions/workflows/test.yml?query=branch:v0.2.1
208
208
 
209
209
  [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/string-ends-with/main.svg
210
210
  [coverage-url]: https://codecov.io/github/stdlib-js/string-ends-with?branch=main
@@ -231,8 +231,11 @@ Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
231
231
  [es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
232
232
 
233
233
  [deno-url]: https://github.com/stdlib-js/string-ends-with/tree/deno
234
+ [deno-readme]: https://github.com/stdlib-js/string-ends-with/blob/deno/README.md
234
235
  [umd-url]: https://github.com/stdlib-js/string-ends-with/tree/umd
236
+ [umd-readme]: https://github.com/stdlib-js/string-ends-with/blob/umd/README.md
235
237
  [esm-url]: https://github.com/stdlib-js/string-ends-with/tree/esm
238
+ [esm-readme]: https://github.com/stdlib-js/string-ends-with/blob/esm/README.md
236
239
  [branches-url]: https://github.com/stdlib-js/string-ends-with/blob/main/branches.md
237
240
 
238
241
  [stdlib-license]: https://raw.githubusercontent.com/stdlib-js/string-ends-with/main/LICENSE
package/SECURITY.md ADDED
@@ -0,0 +1,5 @@
1
+ # Security
2
+
3
+ > Policy for reporting security vulnerabilities.
4
+
5
+ See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security).
@@ -50,7 +50,7 @@
50
50
  * var bool = endsWith( 'To be, or not to be, that is the question.', 'to be', -23 );
51
51
  * // returns true
52
52
  */
53
- declare function endsWith( str: string, search: string, len?: number ): boolean; // tslint:disable-line:max-line-length
53
+ declare function endsWith( str: string, search: string, len?: number ): boolean;
54
54
 
55
55
 
56
56
  // EXPORTS //
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stdlib/string-ends-with",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "description": "Test if a string ends with the characters of another string.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -15,19 +15,12 @@
15
15
  ],
16
16
  "main": "./lib",
17
17
  "directories": {
18
- "benchmark": "./benchmark",
19
18
  "doc": "./docs",
20
- "example": "./examples",
21
19
  "lib": "./lib",
22
- "test": "./test"
20
+ "dist": "./dist"
23
21
  },
24
22
  "types": "./docs/types",
25
- "scripts": {
26
- "test": "make test",
27
- "test-cov": "make test-cov",
28
- "examples": "make examples",
29
- "benchmark": "make benchmark"
30
- },
23
+ "scripts": {},
31
24
  "homepage": "https://stdlib.io",
32
25
  "repository": {
33
26
  "type": "git",
@@ -37,17 +30,12 @@
37
30
  "url": "https://github.com/stdlib-js/stdlib/issues"
38
31
  },
39
32
  "dependencies": {
40
- "@stdlib/assert-is-integer": "^0.1.0",
41
- "@stdlib/assert-is-string": "^0.1.0",
42
- "@stdlib/string-base-ends-with": "^0.1.0",
43
- "@stdlib/string-format": "^0.1.0"
44
- },
45
- "devDependencies": {
46
- "tape": "git+https://github.com/kgryte/tape.git#fix/globby",
47
- "proxyquire": "^2.0.0",
48
- "istanbul": "^0.4.1",
49
- "tap-min": "git+https://github.com/Planeshifter/tap-min.git"
33
+ "@stdlib/assert-is-integer": "^0.2.1",
34
+ "@stdlib/assert-is-string": "^0.2.1",
35
+ "@stdlib/string-base-ends-with": "^0.2.1",
36
+ "@stdlib/string-format": "^0.2.1"
50
37
  },
38
+ "devDependencies": {},
51
39
  "engines": {
52
40
  "node": ">=0.10.0",
53
41
  "npm": ">2.7.0"
package/CITATION.cff DELETED
@@ -1,30 +0,0 @@
1
- cff-version: 1.2.0
2
- title: stdlib
3
- message: >-
4
- If you use this software, please cite it using the
5
- metadata from this file.
6
-
7
- type: software
8
-
9
- authors:
10
- - name: The Stdlib Authors
11
- url: https://github.com/stdlib-js/stdlib/graphs/contributors
12
-
13
- repository-code: https://github.com/stdlib-js/stdlib
14
- url: https://stdlib.io
15
-
16
- abstract: |
17
- Standard library for JavaScript and Node.js.
18
-
19
- keywords:
20
- - JavaScript
21
- - Node.js
22
- - TypeScript
23
- - standard library
24
- - scientific computing
25
- - numerical computing
26
- - statistical computing
27
-
28
- license: Apache-2.0 AND BSL-1.0
29
-
30
- date-released: 2016