bajo 1.1.11 → 1.1.12

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/boot/lib/shim.js +9 -0
  2. package/package.json +1 -1
package/boot/lib/shim.js CHANGED
@@ -8,6 +8,15 @@ function shim () {
8
8
  return this.replace(new RegExp(str, 'g'), newStr)
9
9
  }
10
10
  }
11
+ if (!String.prototype.splice) {
12
+ String.prototype.splice = function(index, count, add) { // eslint-disable-line
13
+ if (index < 0) {
14
+ index += this.length
15
+ if (index < 0) index = 0
16
+ }
17
+ return this.slice(0, index) + (add || '') + this.slice(index + count)
18
+ }
19
+ }
11
20
  }
12
21
 
13
22
  export default shim
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bajo",
3
- "version": "1.1.11",
3
+ "version": "1.1.12",
4
4
  "description": "A framework to build a giant monstrous app rapidly",
5
5
  "main": "boot/index.js",
6
6
  "scripts": {