Skip to content

Commit

Permalink
Merge pull request #195 from connorjclark/sugar
Browse files Browse the repository at this point in the history
Add detection for Sugar
  • Loading branch information
housseindjirdeh authored Apr 12, 2022
2 parents 4587e6d + feb1b4d commit fa8e3d1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Binary file added icons/sugar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions library/libraries.js
Original file line number Diff line number Diff line change
Expand Up @@ -1872,6 +1872,23 @@ var d41d8cd98f00b204e9800998ecf8427e_LibraryDetectorTests = {
return { version: UNKNOWN_VERSION };
}

return false;
}
},
'Sugar': {
id: 'sugar',
icon: 'sugar',
url: 'https://sugarjs.com',
npm: 'sugar',
test: function (win) {
if (win.Sugar) {
return { version: win.Sugar.VERSION || UNKNOWN_VERSION };
}

if (win.Array.SugarMethods) {
return { version: UNKNOWN_VERSION };
}

return false;
}
}
Expand Down

0 comments on commit fa8e3d1

Please sign in to comment.