extendscriptkit
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -7,3 +7,3 @@ "use strict"; | ||
var item = this.item(i); | ||
cb(item); | ||
cb(item, i); | ||
} | ||
@@ -14,5 +14,5 @@ }; | ||
var numItems = this.numItems; | ||
for (var i = 1; i < numItems; i++) { | ||
for (var i = 1; i <= numItems; i++) { | ||
var item = this.item(i); | ||
filter(item) && cb(item); | ||
filter(item) && cb(item, i); | ||
} | ||
@@ -23,3 +23,3 @@ }; | ||
for (var i = 0; i < this.selection.length; i++) { | ||
cb(this.selection[i]); | ||
cb(this.selection[i], i); | ||
} | ||
@@ -38,2 +38,2 @@ }; | ||
}, cb); | ||
}; | ||
}; |
@@ -36,5 +36,10 @@ 'use strict'; | ||
$.global.console = { | ||
log: logConsole, | ||
error: logError | ||
} | ||
module.exports = { | ||
log: logConsole, | ||
error: logError | ||
}; | ||
}; |
{ | ||
"name": "extendscriptkit", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "ExtendScript shims and helpers", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -14,3 +14,3 @@ # ExtendScriptKit | ||
If you don't want to use Browserify, you can download the zip of this repository and use the ExtendScriptKit.jsx bundle (note: untested) | ||
If you don't want to use Browserify, you can download the zip of this repository and use the ExtendScriptKit.jsx bundle | ||
@@ -174,1 +174,13 @@ ## Features | ||
You can now use `console.log()` and `console.error()` in any JSX file. | ||
## License | ||
``` | ||
Copyright (c) 2016 Koen Schmeets | ||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
``` |
@@ -19,1 +19,7 @@ require('./Project') | ||
} | ||
Application.prototype.activeItemIsComposition = function () { | ||
return app.project | ||
&& app.project.activeItem | ||
&& app.project.activeItem instanceof CompItem | ||
} |
@@ -5,3 +5,3 @@ Project.prototype.forItems = function (cb) { | ||
const item = this.item(i) | ||
cb(item) | ||
cb(item, i) | ||
} | ||
@@ -12,5 +12,5 @@ } | ||
const numItems = this.numItems | ||
for (var i = 1; i < numItems; i++) { | ||
for (var i = 1; i <= numItems; i++) { | ||
const item = this.item(i) | ||
filter(item) && cb(item) | ||
filter(item) && cb(item, i) | ||
} | ||
@@ -21,3 +21,3 @@ } | ||
for (var i = 0; i < this.selection.length; i++) { | ||
cb(this.selection[i]) | ||
cb(this.selection[i], i) | ||
} | ||
@@ -24,0 +24,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
99978
26
2556
185
0