Skip to content

Commit 40a1580

Browse files
committed
Fix NPM package.json, put React 0.12 as a peer dependency
1 parent a6f6e25 commit 40a1580

File tree

7 files changed

+22
-13
lines changed

7 files changed

+22
-13
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if (ReactSWF.isFPVersionSupported('10.0')) {
2020

2121
## Installation
2222

23-
#### Universal script [(minified)](//raw.githubusercontent.com/syranide/react-swf/v0.9.1/react-swf.min.js) [(source)](//raw.githubusercontent.com/syranide/react-swf/v0.9.1/react-swf.js)
23+
#### Universal script [(minified)](//raw.githubusercontent.com/syranide/react-swf/v0.9.2/react-swf.min.js) [(source)](//raw.githubusercontent.com/syranide/react-swf/v0.9.2/react-swf.js)
2424

2525
```
2626
<!-- Global module -->

bower.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-swf",
3-
"version": "0.9.1",
3+
"version": "0.9.2",
44
"license": "MIT",
55
"description": "Shockwave Flash Player component for React",
66
"authors": ["Andreas Svensson <[email protected]>"],
@@ -11,6 +11,9 @@
1111
"type": "git",
1212
"url": "https://github.com/syranide/react-swf"
1313
},
14+
"dependencies": {
15+
"react": "^0.12",
16+
},
1417
"keywords": [
1518
"react",
1619
"react-component",

npm-react-swf/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
{
22
"name": "react-swf",
3-
"version": "0.9.1",
3+
"version": "0.9.2",
44
"license": "MIT",
55
"description": "Shockwave Flash Player component for React",
66
"author": "Andreas Svensson <[email protected]>",
77
"homepage": "https://github.com/syranide/react-swf",
88
"bugs": "https://github.com/syranide/react-swf/issues",
9-
"main": "npm-react-swf/react-swf.js",
9+
"main": "react-swf.js",
1010
"repository": {
1111
"type": "git",
1212
"url": "https://github.com/syranide/react-swf"
1313
},
14+
"peerDependencies": {
15+
"react": "^0.12",
16+
},
1417
"keywords": [
1518
"react",
1619
"react-component",

npm-react-swf/react-swf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! react-swf v0.9.1 | @syranide | MIT license */
1+
/*! react-swf v0.9.2 | @syranide | MIT license */
22

33
'use strict';
44

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-swf",
3-
"version": "0.9.1",
3+
"version": "0.9.2",
44
"license": "MIT",
55
"description": "Shockwave Flash Player component for React",
66
"author": "Andreas Svensson <[email protected]>",
@@ -11,6 +11,9 @@
1111
"type": "git",
1212
"url": "https://github.com/syranide/react-swf"
1313
},
14+
"peerDependencies": {
15+
"react": "^0.12",
16+
},
1417
"keywords": [
1518
"react",
1619
"react-component",

react-swf.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
/*! react-swf v0.9.1 | @syranide | MIT license */
1+
/*! react-swf v0.9.2 | @syranide | MIT license */
22

33
(function(root, factory) {
44
if (typeof define === 'function' && define.amd) {
5-
define([], factory);
5+
define(['react'], factory);
66
} else if (typeof exports === 'object') {
7-
module.exports = factory();
7+
module.exports = factory(require('react'));
88
} else {
9-
root.ReactSWF = factory();
9+
root.ReactSWF = factory(root.React);
1010
}
11-
}(this, function() {
11+
}(this, function(React) {
1212
'use strict';
1313

1414
var mimeTypeForFP = 'application/x-shockwave-flash';

react-swf.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)