cypress-rollup-preprocessor
Advanced tools
Comparing version 0.3.0 to 0.4.0
@@ -0,1 +1,13 @@ | ||
# [0.4.0](https://github.com/lmarqs/cypress-rollup-preprocessor/compare/v0.3.0...v0.4.0) (2020-08-18) | ||
### Bug Fixes | ||
* fix cache on rebuild ([c035a8e](https://github.com/lmarqs/cypress-rollup-preprocessor/commit/c035a8e2c697f4093da9f7a56fb1d750d6d6c0cf)) | ||
### Features | ||
* allow to import using commonjs ([04394e9](https://github.com/lmarqs/cypress-rollup-preprocessor/commit/04394e9ff8f947b8560677e15bc66fd7faf10bc2)) | ||
# [0.3.0](https://github.com/lmarqs/cypress-rollup-preprocessor/compare/v0.2.0...v0.3.0) (2020-08-18) | ||
@@ -2,0 +14,0 @@ |
export { createPreprocessor as default } from './preprocessor'; |
@@ -1,4 +0,16 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var preprocessor_1 = require("./preprocessor"); | ||
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return preprocessor_1.createPreprocessor; } }); | ||
"use strict";var t=require("rollup"),n=function(){return(n=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t}).apply(this,arguments)}; | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted. | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */function e(t,n,e,r){return new(e||(e=Promise))((function(o,u){function i(t){try{c(r.next(t))}catch(t){u(t)}}function a(t){try{c(r.throw(t))}catch(t){u(t)}}function c(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(i,a)}c((r=r.apply(t,n||[])).next())}))}function r(t,n){var e,r,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(u){return function(a){return function(u){if(e)throw new TypeError("Generator is already executing.");for(;i;)try{if(e=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=n.call(t,i)}catch(t){u=[6,t],r=0}finally{e=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}}var o={};module.exports=function(u){return void 0===u&&(u={}),function(i){return function(u,i){return e(this,void 0,void 0,(function(){var e,a,c;return r(this,(function(r){switch(r.label){case 0:return o[i.filePath]?[2,o[i.filePath]]:(e=Object.assign({},u.rollupOptions,{input:i.filePath}),a={file:i.outputPath,format:"umd"},[4,t.rollup(e)]);case 1:return[4,r.sent().write(a)];case 2:return r.sent(),i.shouldWatch&&(c=t.watch(n(n({},e),{output:a})),i.on("close",(function(){c.close(),delete o[i.filePath]})),c.on("event",(function(t){"BUNDLE_END"===t.code&&(o[t.input.toString()]=t.output[0]),"END"===t.code&&i.emit("rerun")}))),[2,i.outputPath]}}))}))}(u,i)}}; | ||
//# sourceMappingURL=index.js.map |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
{ | ||
"name": "cypress-rollup-preprocessor", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "Cypress preprocessor for bundling JavaScript via rollup", | ||
@@ -8,3 +8,3 @@ "main": "dist/index.js", | ||
"prebuild": "shx rm -rf dist", | ||
"build": "tsc", | ||
"build": "rollup --config rollup.config.ts", | ||
"lint": "npm-run-all lint:*", | ||
@@ -19,5 +19,3 @@ "lint:commit": "commitlint --from master", | ||
}, | ||
"dependencies": { | ||
"rollup": "^2.26.3" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
@@ -56,2 +54,5 @@ "@commitlint/cli": "^9.1.2", | ||
"npm-run-all": "^4.1.5", | ||
"rollup": "^2.26.3", | ||
"rollup-plugin-terser": "^7.0.0", | ||
"rollup-plugin-typescript2": "^0.27.2", | ||
"semantic-release": "^17.1.1", | ||
@@ -58,0 +59,0 @@ "shx": "^0.3.2", |
@@ -45,3 +45,3 @@ # cypress-rollup-preprocessor | ||
Pass in options as the second argument to `rollup`: | ||
Pass in options as the argument to `rollup`: | ||
@@ -48,0 +48,0 @@ ```javascript |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
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
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
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
1
1
16088
43
35
2
- Removedrollup@^2.26.3