Skip to content

Commit

Permalink
Fix operator id
Browse files Browse the repository at this point in the history
  • Loading branch information
Cédric Ronvel committed Nov 8, 2020
1 parent 49d6764 commit 6442a2e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions lib/operators.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,3 +207,10 @@ exports['parametric-round-trip-with-pause'] = ( t , p1 = ONE_THIRD , p3 = ONE_TH
t >= 1 - p3 ? 1 / p3 - t / p3 :
1 ;



// The function itself should know its identifier
for ( let key in exports ) {
if ( ! exports[ key ].id ) { exports[ key ].id = key ; }
}

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "spellcast-shared",
"version": "0.50.2",
"version": "0.50.3",
"description": "Shared code/utilities across Spellcast client and server.",
"main": "lib/shared.js",
"engines": {
Expand Down

0 comments on commit 6442a2e

Please sign in to comment.