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

gulp-amd-wrap

Package Overview
Dependencies
Maintainers
8
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-amd-wrap - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

4

dist/addRequireConfig.d.ts
/** 解析所有文件的moduleID, 生成config后插到入口文件的头部 */
export declare function addRequireConfig(option: optionType): any;
interface optionType {
export declare function addRequireConfig(option: OptionType): any;
interface OptionType {
mainJs?: string;

@@ -5,0 +5,0 @@ /** 线上部署地址 如/se/static/molecules/toptip/ */

@@ -22,3 +22,3 @@ "use strict";

// {'@molecule/a/xxx': '/se/static/molecules/a/b/xx}
pathConfig[moduleId] = path_1.resolve(option.deloyDir, relativePath).replace(/.js$/, '');
pathConfig[moduleId] = option.deloyDir + relativePath.replace(/.js$/, '');
}

@@ -37,5 +37,5 @@ }

callback();
}
},
});
}
exports.addRequireConfig = addRequireConfig;

@@ -6,4 +6,4 @@ "use strict";

* @Date: 2019-04-27 14:21:32
* @Last Modified by: qiansc
* @Last Modified time: 2019-04-29 16:55:34
* @Last Modified by: liangjiaying@baidu.com
* @Last Modified time: 2019-08-20 15:29:21
*/

@@ -10,0 +10,0 @@ var estraverse_1 = require("estraverse");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var stream = require("readable-stream");
var filter_1 = require("./filter");
var parser_1 = require("./parser");
var stream = require("readable-stream");
var Transform = stream.Transform;

@@ -25,3 +25,3 @@ function amdWrap(option) {

removeModuleId: filter_1.include(file.path, option.anonymousModule, option.baseUrl),
useMd5: useMd5
useMd5: useMd5,
});

@@ -28,0 +28,0 @@ file.contents = new Buffer(parser.getContent());

@@ -7,3 +7,3 @@ "use strict";

* @Last Modified by: liangjiaying@baidu.com
* @Last Modified time: 2019-08-19 10:49:24
* @Last Modified time: 2019-08-20 15:53:56
*/

@@ -13,8 +13,8 @@ var escodegen_1 = require("escodegen");

var estraverse_1 = require("estraverse");
var fs_1 = require("fs");
var path_1 = require("path");
var async_analyzer_1 = require("./async-analyzer");
var dependency_analyzer_1 = require("./dependency-analyzer");
var filter_1 = require("./filter");
var moduleID_1 = require("./moduleID");
var filter_1 = require("./filter");
var path_1 = require("path");
var fs_1 = require("fs");
var md5File = require('md5-file');

@@ -21,0 +21,0 @@ var Parser = /** @class */ (function () {

{
"name": "gulp-amd-wrap",
"version": "1.0.8",
"version": "1.0.9",
"discription": "gulp-amd-wrap",

@@ -5,0 +5,0 @@ "scripts": {

Sorry, the diff of this file is too big to display

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