Skip to content

Commit

Permalink
sdk/node: remove use of Array#includes for better compatibility
Browse files Browse the repository at this point in the history
Closes #1309
  • Loading branch information
jeffomatic authored and iampogo committed Jun 12, 2017
1 parent fa54107 commit 2d7fce5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion generated/rev/RevId.java
@@ -1,4 +1,4 @@

public final class RevId {
public final String Id = "main/rev3236";
public final String Id = "main/rev3237";
}
2 changes: 1 addition & 1 deletion generated/rev/revid.go
@@ -1,3 +1,3 @@
package rev

const ID string = "main/rev3236"
const ID string = "main/rev3237"
2 changes: 1 addition & 1 deletion generated/rev/revid.js
@@ -1,2 +1,2 @@

export const rev_id = "main/rev3236"
export const rev_id = "main/rev3237"
2 changes: 1 addition & 1 deletion generated/rev/revid.rb
@@ -1,4 +1,4 @@

module Chain::Rev
ID = "main/rev3236".freeze
ID = "main/rev3237".freeze
end
4 changes: 2 additions & 2 deletions sdk/node/src/connection.js
Expand Up @@ -30,7 +30,7 @@ const snakeize = (object) => {
delete object[key]
}

if (typeof value == 'object' && !blacklistAttributes.includes(newKey)) {
if (typeof value == 'object' && blacklistAttributes.indexOf(newKey) == -1) {
value = snakeize(value)
}

Expand All @@ -50,7 +50,7 @@ const camelize = (object) => {
delete object[key]
}

if (typeof value == 'object' && !blacklistAttributes.includes(key)) {
if (typeof value == 'object' && blacklistAttributes.indexOf(key) == -1) {
value = camelize(value)
}

Expand Down

0 comments on commit 2d7fce5

Please sign in to comment.