Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wx-to-tt

Package Overview
Dependencies
Maintainers
6
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wx-to-tt - npm Package Compare versions

Comparing version 0.2.9-beta.4 to 0.2.9-beta.5

static/.DS_Store

2

dist/transform/config.js

@@ -1,1 +0,1 @@

"use strict";var e=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),t=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var i={};if(null!=n)for(var r in n)"default"!==r&&Object.prototype.hasOwnProperty.call(n,r)&&e(i,n,r);return t(i,n),i},i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function u(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,s)}c((i=i.apply(e,t||[])).next())}))};Object.defineProperty(exports,"__esModule",{value:!0}),exports.transformConfig=void 0;const r=n(require("../utils")),o=require("../utils/constant"),u=require("../utils/log");function s(e,t){e.plugins&&Object.keys(e.plugins).forEach((e=>{u.log.recordLog({type:o.ERROR_TYPE.configNotSupport,name:"plugins",file:t,message:`plugin: ${e} 暂未支持引用插件,请参考开发者文档完成适配。`},u.Level.WARNING,!0)})),e.useExtendedLib&&Object.keys(e.useExtendedLib).length>0&&Object.keys(e.useExtendedLib).forEach((e=>{u.log.recordLog({type:o.ERROR_TYPE.configNotSupport,name:"useExtendedLib",file:t,message:`extendedLib: ${e} 暂未支持引用扩展库,请参考开发者文档完成适配。`},u.Level.WARNING,!0)}))}exports.transformConfig=function(e){return i(this,void 0,void 0,(function*(){const t=yield r.traverseFiles(e,"json");for(let e in t){u.log.recordTransformFile(t[e]);s(yield r.getJSONContent(t[e]),t[e])}}))};
"use strict";var e=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),t=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var i={};if(null!=n)for(var r in n)"default"!==r&&Object.prototype.hasOwnProperty.call(n,r)&&e(i,n,r);return t(i,n),i},i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function u(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,s)}c((i=i.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.transformConfig=void 0;const o=n(require("../utils")),u=require("../utils/constant"),s=require("../utils/log"),c=r(require("path"));function l(e,t,n){return t.plugins&&Object.keys(t.plugins).forEach((e=>{s.log.recordLog({type:u.ERROR_TYPE.configNotSupport,name:"plugins",file:n,message:`plugin: ${e} 暂未支持引用插件,请参考开发者文档完成适配。`},s.Level.WARNING,!0)})),t.useExtendedLib&&Object.keys(t.useExtendedLib).length>0&&Object.keys(t.useExtendedLib).forEach((e=>{s.log.recordLog({type:u.ERROR_TYPE.configNotSupport,name:"useExtendedLib",file:n,message:`extendedLib: ${e} 暂未支持引用扩展库,请参考开发者文档完成适配。`},s.Level.WARNING,!0)})),function(e,t){return"project.config.json"===c.default.relative(t,e)}(n,e.dist)&&(t.douyinProjectType="convert"),t}exports.transformConfig=function(e){return i(this,void 0,void 0,(function*(){const t=yield o.traverseFiles(e,"json");for(let n in t){s.log.recordTransformFile(t[n]);const i=yield o.getJSONContent(t[n]),r=l(e,i,t[n]);yield o.saveFile(t[n],JSON.stringify(r))}}))};
{
"name": "wx-to-tt",
"version": "0.2.9-beta.4",
"version": "0.2.9-beta.5",
"description": "transform wx micro app to bytedance micro app",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc