Skip to content

Commit

Permalink
Remove non-existent polyfill
Browse files Browse the repository at this point in the history
@ember/polyfills has never exported keys
  • Loading branch information
Adam Stevenson committed Jul 29, 2023
1 parent e4bb467 commit 251de1f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions addon/adapters/base.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { keys } from '@ember/polyfills';
import RSVP from 'rsvp';
import { run } from '@ember/runloop';
import { isEmpty, typeOf } from '@ember/utils';
Expand All @@ -10,8 +9,6 @@ import {
} from 'ember-local-storage/helpers/import-export';
import { _buildKey } from 'ember-local-storage/helpers/storage';

const getKeys = Object.keys || keys;

// Ember data ships with ember-inflector
import { singularize, pluralize } from 'ember-inflector';

Expand Down Expand Up @@ -221,7 +218,7 @@ export default JSONAPIAdapter.extend({
const dataType = typeOf(data);

if (queryType === 'object' && dataType === 'object') {
return getKeys(query).every((key) => {
return Object.keys(query).every((key) => {
let queryValue = query[key],
recordValue;

Expand Down Expand Up @@ -261,7 +258,7 @@ export default JSONAPIAdapter.extend({
if (dataType === 'object') {
const queryMessage = query
.map(function (item) {
return getKeys(item).map(function (key) {
return Object.keys(item).map(function (key) {
return key + ': ' + item[key];
});
})
Expand Down

0 comments on commit 251de1f

Please sign in to comment.