Comparing version 1.1.2 to 1.1.3-0
@@ -1,1 +0,1 @@ | ||
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="./",r(r.s=2)}([function(e,t){e.exports=require("universal-env")},function(e,t){e.exports=require("rax")},function(e,t,r){e.exports=r(3)},function(e,t,r){"use strict";r.r(t);var n=r(1),i=r(0);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}const a={defaultUrlParam:{_page_inside_embed_:"true",_page_home_isweex_:i.isWeex,useIframeInWeb:!1},urlParam:{},src:""};t.default=e=>{e=Object.assign(Object.assign({},a),e);let{useIframeInWeb:t}=e,r=function(e){let t=e.src;const r=t.indexOf("?")>=0?"&":"?";if("string"==typeof e.urlParam)t+=r+e.urlParam;else{let n=[],i=Object.assign({},e.urlParam,e.defaultUrlParam);for(let e in i)n.push(e+"="+i[e]);t+=r+n.join("&")}return t}(e);return i.isMiniApp||i.isWeChatMiniProgram?Object(n.createElement)("web-view",{id:e.id||"",src:r,onMessage:e.onMessage}):t&&i.isWeb?Object(n.createElement)("iframe",s({},e,{type:i.isWeex?"weex":"",itemId:1,src:r,style:Object.assign(Object.assign({borderWidth:0},e.style),{visibility:"visible"})})):i.isWeex&&function(e){return/(_wx_tpl=[^\s&]|wh_weex=true)/.test(e)}(r)||i.isWeb?Object(n.createElement)("embed",s({},e,{type:i.isWeex?"weex":"",itemId:1,src:r,style:Object.assign(Object.assign({},e.style),{visibility:"visible"})})):Object(n.createElement)("web",s({},e,{src:r,style:e.style}))}}]); | ||
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=2)}([function(e,t){e.exports=require("universal-env")},function(e,t){e.exports=require("rax")},function(e,t,r){e.exports=r(3)},function(e,t,r){"use strict";r.r(t);var n=r(1),i=r(0);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}const a={defaultUrlParam:{_page_inside_embed_:"true",_page_home_isweex_:i.isWeex,useIframeInWeb:!1},urlParam:{},src:""};t.default=e=>{e=Object.assign(Object.assign({},a),e);let{useIframeInWeb:t}=e,r=function(e){let t=e.src;const r=t.indexOf("?")>=0?"&":"?";if("string"==typeof e.urlParam)t+=r+e.urlParam;else{let n=[],i=Object.assign({},e.urlParam,e.defaultUrlParam);for(let e in i)n.push(e+"="+i[e]);t+=r+n.join("&")}return t}(e);return i.isMiniApp||i.isWeChatMiniProgram?Object(n.createElement)("web-view",{id:e.id||"",src:r,onMessage:e.onMessage}):t&&i.isWeb?Object(n.createElement)("iframe",s({},e,{type:i.isWeex?"weex":"",itemId:1,src:r,style:Object.assign(Object.assign({borderWidth:0},e.style),{visibility:"visible"})})):i.isWeex&&function(e){return/(_wx_tpl=[^\s&]|wh_weex=true)/.test(e)}(r)||i.isWeb?Object(n.createElement)("embed",s({},e,{type:i.isWeex?"weex":"",itemId:1,src:r,style:Object.assign(Object.assign({},e.style),{visibility:"visible"})})):Object(n.createElement)("web",s({},e,{src:r,style:e.style}))}}]); |
@@ -1,1 +0,1 @@ | ||
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="./",r(r.s=2)}([function(e,t){e.exports=require("universal-env")},function(e,t){e.exports=require("rax")},function(e,t,r){e.exports=r(3)},function(e,t,r){"use strict";r.r(t);var n=r(1),i=r(0);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var a={defaultUrlParam:{_page_inside_embed_:"true",_page_home_isweex_:i.isWeex,useIframeInWeb:!1},urlParam:{},src:""};t.default=function(e){var t=(e=Object.assign(Object.assign({},a),e)).useIframeInWeb,r=function(e){var t=e.src,r=t.indexOf("?")>=0?"&":"?";if("string"==typeof e.urlParam)t+=r+e.urlParam;else{var n=[],i=Object.assign({},e.urlParam,e.defaultUrlParam);for(var s in i)n.push(s+"="+i[s]);t+=r+n.join("&")}return t}(e);return i.isMiniApp||i.isWeChatMiniProgram?Object(n.createElement)("web-view",{id:e.id||"",src:r,onMessage:e.onMessage}):t&&i.isWeb?Object(n.createElement)("iframe",s({},e,{type:i.isWeex?"weex":"",itemId:1,src:r,style:Object.assign(Object.assign({borderWidth:0},e.style),{visibility:"visible"})})):i.isWeex&&function(e){return/(_wx_tpl=[^\s&]|wh_weex=true)/.test(e)}(r)||i.isWeb?Object(n.createElement)("embed",s({},e,{type:i.isWeex?"weex":"",itemId:1,src:r,style:Object.assign(Object.assign({},e.style),{visibility:"visible"})})):Object(n.createElement)("web",s({},e,{src:r,style:e.style}))}}]); | ||
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=2)}([function(e,t){e.exports=require("universal-env")},function(e,t){e.exports=require("rax")},function(e,t,r){e.exports=r(3)},function(e,t,r){"use strict";r.r(t);var n=r(1),i=r(0);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var a={defaultUrlParam:{_page_inside_embed_:"true",_page_home_isweex_:i.isWeex,useIframeInWeb:!1},urlParam:{},src:""};t.default=function(e){var t=(e=Object.assign(Object.assign({},a),e)).useIframeInWeb,r=function(e){var t=e.src,r=t.indexOf("?")>=0?"&":"?";if("string"==typeof e.urlParam)t+=r+e.urlParam;else{var n=[],i=Object.assign({},e.urlParam,e.defaultUrlParam);for(var s in i)n.push(s+"="+i[s]);t+=r+n.join("&")}return t}(e);return i.isMiniApp||i.isWeChatMiniProgram?Object(n.createElement)("web-view",{id:e.id||"",src:r,onMessage:e.onMessage}):t&&i.isWeb?Object(n.createElement)("iframe",s({},e,{type:i.isWeex?"weex":"",itemId:1,src:r,style:Object.assign(Object.assign({borderWidth:0},e.style),{visibility:"visible"})})):i.isWeex&&function(e){return/(_wx_tpl=[^\s&]|wh_weex=true)/.test(e)}(r)||i.isWeb?Object(n.createElement)("embed",s({},e,{type:i.isWeex?"weex":"",itemId:1,src:r,style:Object.assign(Object.assign({},e.style),{visibility:"visible"})})):Object(n.createElement)("web",s({},e,{src:r,style:e.style}))}}]); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.raxEmbed=t():e.raxEmbed=t()}(window,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="./",r(r.s=2)}([function(e,t){e.exports=require("universal-env")},function(e,t){e.exports=require("rax")},function(e,t,r){e.exports=r(3)},function(e,t,r){"use strict";r.r(t);var n=r(1),i=r(0);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var s={defaultUrlParam:{_page_inside_embed_:"true",_page_home_isweex_:i.isWeex,useIframeInWeb:!1},urlParam:{},src:""};t.default=function(e){var t=(e=Object.assign(Object.assign({},s),e)).useIframeInWeb,r=function(e){var t=e.src,r=t.indexOf("?")>=0?"&":"?";if("string"==typeof e.urlParam)t+=r+e.urlParam;else{var n=[],i=Object.assign({},e.urlParam,e.defaultUrlParam);for(var o in i)n.push(o+"="+i[o]);t+=r+n.join("&")}return t}(e);return i.isMiniApp||i.isWeChatMiniProgram?Object(n.createElement)("web-view",{id:e.id||"",src:r,onMessage:e.onMessage}):t&&i.isWeb?Object(n.createElement)("iframe",o({},e,{type:i.isWeex?"weex":"",itemId:1,src:r,style:Object.assign(Object.assign({borderWidth:0},e.style),{visibility:"visible"})})):i.isWeex&&function(e){return/(_wx_tpl=[^\s&]|wh_weex=true)/.test(e)}(r)||i.isWeb?Object(n.createElement)("embed",o({},e,{type:i.isWeex?"weex":"",itemId:1,src:r,style:Object.assign(Object.assign({},e.style),{visibility:"visible"})})):Object(n.createElement)("web",o({},e,{src:r,style:e.style}))}}])})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.raxEmbed=t():e.raxEmbed=t()}(window,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=2)}([function(e,t){e.exports=require("universal-env")},function(e,t){e.exports=require("rax")},function(e,t,r){e.exports=r(3)},function(e,t,r){"use strict";r.r(t);var n=r(1),i=r(0);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var s={defaultUrlParam:{_page_inside_embed_:"true",_page_home_isweex_:i.isWeex,useIframeInWeb:!1},urlParam:{},src:""};t.default=function(e){var t=(e=Object.assign(Object.assign({},s),e)).useIframeInWeb,r=function(e){var t=e.src,r=t.indexOf("?")>=0?"&":"?";if("string"==typeof e.urlParam)t+=r+e.urlParam;else{var n=[],i=Object.assign({},e.urlParam,e.defaultUrlParam);for(var o in i)n.push(o+"="+i[o]);t+=r+n.join("&")}return t}(e);return i.isMiniApp||i.isWeChatMiniProgram?Object(n.createElement)("web-view",{id:e.id||"",src:r,onMessage:e.onMessage}):t&&i.isWeb?Object(n.createElement)("iframe",o({},e,{type:i.isWeex?"weex":"",itemId:1,src:r,style:Object.assign(Object.assign({borderWidth:0},e.style),{visibility:"visible"})})):i.isWeex&&function(e){return/(_wx_tpl=[^\s&]|wh_weex=true)/.test(e)}(r)||i.isWeb?Object(n.createElement)("embed",o({},e,{type:i.isWeex?"weex":"",itemId:1,src:r,style:Object.assign(Object.assign({},e.style),{visibility:"visible"})})):Object(n.createElement)("web",o({},e,{src:r,style:e.style}))}}])})); |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
function genFixedUrl(props) { | ||
@@ -4,0 +2,0 @@ // handle android ios |
@@ -44,3 +44,3 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
var Embed = function (props) { | ||
props = Object.assign(Object.assign({}, defaultProps), props); | ||
props = _extends({}, defaultProps, props); | ||
var _props = props, | ||
@@ -63,5 +63,5 @@ useIframeInWeb = _props.useIframeInWeb; | ||
src: url, | ||
style: Object.assign(Object.assign({ | ||
style: _extends({}, { | ||
borderWidth: 0 | ||
}, props.style), { | ||
}, props.style, { | ||
visibility: 'visible' | ||
@@ -77,3 +77,3 @@ }) | ||
src: url, | ||
style: Object.assign(Object.assign({}, props.style), { | ||
style: _extends({}, props.style, { | ||
visibility: 'visible' | ||
@@ -80,0 +80,0 @@ }) |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
Component({ | ||
@@ -4,0 +2,0 @@ data: { |
@@ -50,3 +50,3 @@ "use strict"; | ||
var Embed = function (props) { | ||
props = Object.assign(Object.assign({}, defaultProps), props); | ||
props = _extends({}, defaultProps, props); | ||
var _props = props, | ||
@@ -69,5 +69,5 @@ useIframeInWeb = _props.useIframeInWeb; | ||
src: url, | ||
style: Object.assign(Object.assign({ | ||
style: _extends({}, { | ||
borderWidth: 0 | ||
}, props.style), { | ||
}, props.style, { | ||
visibility: 'visible' | ||
@@ -83,3 +83,3 @@ }) | ||
src: url, | ||
style: Object.assign(Object.assign({}, props.style), { | ||
style: _extends({}, props.style, { | ||
visibility: 'visible' | ||
@@ -86,0 +86,0 @@ }) |
{ | ||
"name": "rax-embed", | ||
"version": "1.1.2", | ||
"version": "1.1.3-0", | ||
"description": "Embed container for Rax.", | ||
"license": "BSD-3-Clause", | ||
"main": "lib/index.js", | ||
"module": "es/index.js", | ||
"types": "lib/index.d.ts", | ||
"miniprogram": ".", | ||
"miniappConfig": { | ||
"main": "lib/miniapp/index", | ||
"main:wechat": "lib/miniapp-wechat/index", | ||
"main:bytedance": "lib/bytedance-microapp/index" | ||
}, | ||
"scripts": { | ||
"clean": "rm -rf ./lib && rm -rf ./package-lock.json && rm -f ./yarn.lock && rm -rf demo/miniapp/lib", | ||
"build": "npm run clean && ../../node_modules/.bin/build-scripts build --config ../../build.json", | ||
"start": "../../node_modules/.bin/build-scripts start --config ../../build.json" | ||
"build": "../../node_modules/.bin/build-scripts build --config ../../build.json --skip-demo", | ||
"start": "../../node_modules/.bin/build-scripts start --config ../../build.json", | ||
"prepublishOnly": "npm run build" | ||
}, | ||
@@ -17,9 +24,11 @@ "repository": { | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/raxjs/rax-components/issues" | ||
}, | ||
"homepage": "https://github.com/raxjs/rax-components#readme", | ||
"keywords": [ | ||
"Rax", | ||
"rax-component" | ||
"rax-component", | ||
"react-component" | ||
], | ||
"engines": { | ||
"npm": ">=3.0.0" | ||
}, | ||
"dependencies": { | ||
@@ -44,8 +53,3 @@ "universal-env": "^3.0.0" | ||
"typescript": "^3.6.2" | ||
}, | ||
"miniappConfig": { | ||
"main": "lib/miniapp/index", | ||
"main:wechat": "lib/wechat-miniprogram/index", | ||
"main:bytedance": "lib/bytedance-microapp/index" | ||
} | ||
} |
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
34600
66
0
626
1
5