@aquera/nile-elements 0.1.4 → 0.1.5

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Webcomponent nile-elements following open-wc recommendations",
4
4
  "license": "MIT",
5
5
  "author": "nile-elements",
6
- "version": "0.1.4",
6
+ "version": "0.1.5",
7
7
  "main": "dist/src/index.js",
8
8
  "type": "module",
9
9
  "module": "dist/src/index.js",
@@ -111,7 +111,7 @@ declare global {
111
111
 
112
112
  function concatSentence(sentence:string, n:number) {
113
113
  if (n < 0 || n > sentence.length) {
114
- throw new Error("Invalid value of n. It must be between 0 and the sentence length.");
114
+ return n;
115
115
  }
116
116
 
117
117
  // Adjust n if it falls in the middle of a word