Skip to content

Commit c6cb176

Browse files
committed
Add all of the split package information.
1 parent c0484ef commit c6cb176

File tree

7 files changed

+102
-2
lines changed

7 files changed

+102
-2
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# editorconfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
indent_style = space
8+
indent_size = 2
9+
end_of_line = lf
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
insert_final_newline = true
13+
14+
[*.md]
15+
trim_trailing_whitespace = false

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.DS_Store
2+
node_modules

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2014 Remy Sharp, Tom Ashworth, and Nathan Hammond
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
loop-protect
2+
============
3+
4+
An extraction of JS Bin's loop protection functionality.

bower.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "loop-protect",
3+
"main": "loop-protect.js",
4+
"version": "0.9.0",
5+
"homepage": "https://github.com/nathanhammond/loop-protect",
6+
"authors": [
7+
"Remy Sharp <remy@remysharp.com>",
8+
"Tom Ashworth <tgvashworth@gmail.com>"
9+
],
10+
"description": "Prevent infinite loops in dynamically eval'd JavaScript.",
11+
"moduleType": [
12+
"globals",
13+
"node"
14+
],
15+
"keywords": [
16+
"loop",
17+
"jsbin"
18+
],
19+
"license": "MIT",
20+
"ignore": [
21+
"**/.*",
22+
"node_modules",
23+
"bower_components",
24+
"test"
25+
]
26+
}

package.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"author": [
3+
{
4+
"name": "Remy Sharp",
5+
"email": "remy@remysharp.com",
6+
"web": "http://remysharp.com"
7+
}
8+
],
9+
"name": "loop-protect",
10+
"description": "Prevent infinite loops in dynamically eval'd JavaScript.",
11+
"main": "loop-protect",
12+
"version": "0.9.0",
13+
"preferGlobal": "true",
14+
"homepage": "https://github.com/nathanhammond/loop-protect",
15+
"repository": {
16+
"type": "git",
17+
"url": "git://github.com/nathanhammond/loop-protect.git"
18+
},
19+
"scripts": {
20+
"test": "node_modules/mocha/bin/_mocha -t 25000 --ui bdd test/loop-protect.js"
21+
},
22+
"devDependencies": {
23+
"mocha": "~1.11.0",
24+
"sinon": "~1.7.3"
25+
},
26+
"licenses": [
27+
{
28+
"type": "MIT",
29+
"url": "https://github.com/nathanhammond/loop-protect/blob/master/LICENSE.md"
30+
}
31+
]
32+
}

loop-protect.test.js renamed to test/loop-protect.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
var assert = require('assert');
44
var sinon = require('sinon');
55
var pwd = process.cwd();
6-
var loopProtect = require(pwd + '/public/js/runner/loop-protect');
6+
var loopProtect = require('../loop-protect');
77

88
// expose a window object for loopProtect compatibility
99
global.window = {
@@ -265,4 +265,4 @@ describe('labels', function () {
265265
// assert(result === 10, 'actual ' + result);
266266
});
267267

268-
});
268+
});

0 commit comments

Comments
 (0)