@ember-tooling/blueprint-model 0.6.0 → 0.6.2

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ember-tooling/blueprint-model",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/ember-cli/ember-cli.git",
@@ -10,10 +10,10 @@
10
10
  "dependencies": {
11
11
  "chalk": "^5.6.2",
12
12
  "diff": "^7.0.0",
13
- "isbinaryfile": "^5.0.4",
14
- "lodash": "^4.17.21",
13
+ "isbinaryfile": "^5.0.7",
14
+ "lodash": "^4.17.23",
15
15
  "promise.hash.helper": "^1.0.8",
16
- "quick-temp": "^0.1.8",
16
+ "quick-temp": "^0.1.9",
17
17
  "silent-error": "^1.1.1"
18
18
  }
19
19
  }
@@ -6,7 +6,7 @@ const { default: chalk } = require('chalk');
6
6
  const EditFileDiff = require('./edit-file-diff');
7
7
  const EOL = require('os').EOL;
8
8
  const rxEOL = new RegExp(EOL, 'g');
9
- const { isBinaryFileSync } = require('isbinaryfile');
9
+ const isBinaryFile = require('isbinaryfile').isBinaryFileSync;
10
10
  const hash = require('promise.hash.helper');
11
11
  const canEdit = require('./open-editor').canEdit;
12
12
  const processTemplate = require('./process-template');
@@ -58,7 +58,7 @@ class FileInfo {
58
58
  /* ignore */
59
59
  }
60
60
 
61
- let canDiff = !isBinaryFileSync(this.inputPath) && (!outputPathIsFile || !isBinaryFileSync(this.outputPath));
61
+ let canDiff = !isBinaryFile(this.inputPath) && (!outputPathIsFile || !isBinaryFile(this.outputPath));
62
62
 
63
63
  if (canDiff) {
64
64
  promptOptions.choices.push({ key: 'd', name: 'Diff', value: 'diff' });
@@ -106,7 +106,7 @@ class FileInfo {
106
106
 
107
107
  return readFile(path).then((content) =>
108
108
  lstat(path).then((fileStat) => {
109
- if (isBinaryFileSync(content, fileStat.size)) {
109
+ if (isBinaryFile(content, fileStat.size)) {
110
110
  return content;
111
111
  } else {
112
112
  try {