Skip to content

Commit

Permalink
Changed the file name convention. Fixed an issue that causes `npm cli…
Browse files Browse the repository at this point in the history
…` and `npm install` to break in certain Node environments.
  • Loading branch information
lsphillips committed May 8, 2021
1 parent 37dbbe6 commit d663004
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 2,364 deletions.
2,355 changes: 1 addition & 2,354 deletions package-lock.json

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@

"devDependencies" :
{
"you-are-cancelled" : "file:.",
"chai" : "4.3.4",
"chai-as-promised" : "7.1.1",
"mocha" : "8.4.0",
Expand All @@ -39,7 +38,7 @@
"eslint-config-protect-me-from-my-stupidity" : "7.0.0"
},

"main" : "src/youAreCancelled.js",
"main" : "src/you-are-cancelled.js",

"repository" :
{
Expand All @@ -62,5 +61,5 @@
"node" : ">=12.0.0"
},

"types" : "youAreCancelled.d.ts"
"types" : "you-are-cancelled.d.ts"
}
4 changes: 2 additions & 2 deletions src/cancellationTokenSource.js → src/cancellation-token-source.js
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

// - - - - - - - - - - - - - - - - - - - - - - - - - - - -

const CancellationToken = require('./cancellationToken');
const OperationCancellationError = require('./operationCancellationError');
const CancellationToken = require('./cancellation-token');
const OperationCancellationError = require('./operation-cancellation-error');

// - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Expand Down
2 changes: 1 addition & 1 deletion src/cancellationToken.js → src/cancellation-token.js
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// - - - - - - - - - - - - - - - - - - - - - - - - - - - -

const OperationCancellationError = require('./operationCancellationError');
const OperationCancellationError = require('./operation-cancellation-error');

// - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions src/youAreCancelled.js → src/you-are-cancelled.js
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

// - - - - - - - - - - - - - - - - - - - - - - - - - - - -

const CancellationToken = require('./cancellationToken');
const CancellationTokenSource = require('./cancellationTokenSource');
const OperationCancellationError = require('./operationCancellationError');
const CancellationToken = require('./cancellation-token');
const CancellationTokenSource = require('./cancellation-token-source');
const OperationCancellationError = require('./operation-cancellation-error');

// - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Expand Down
2 changes: 1 addition & 1 deletion tests/youAreCancelled.spec.js → tests/you-are-cancelled.spec.js
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
const { use, expect } = require('chai');
const asPromised = require('chai-as-promised');
const { spy, assert, match } = require('sinon');
const { CancellationToken, CancellationTokenSource, OperationCancellationError } = require('you-are-cancelled');
const { CancellationToken, CancellationTokenSource, OperationCancellationError } = require('../src/you-are-cancelled');

// - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Expand Down
File renamed without changes.

0 comments on commit d663004

Please sign in to comment.