@plasma-platform/amazon-rename
Advanced tools
Comparing version 1.1.4-alpha.0 to 1.1.5-alpha.0
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;class amazonRename{static rename(url){return url.replace("s3-us-west-1.amazonaws.com/screenshots.templatemonster.com","s3.tmimgcdn.com").replace("s3.us-west-1.amazonaws.com/screenshots.templatemonster.com","s3.tmimgcdn.com").replace("s3-us-west-1.amazonaws.com/tmuploader","s3u.tmimgcdn.com").replace("tmuploader.s3.us-west-1.amazonaws.com","s3u.tmimgcdn.com").replace("tmauthors.s3.amazonaws.com","s3a.tmimgcdn.com").replace("s3.amazonaws.com/tmauthors","s3a.tmimgcdn.com")}static convert(url,obj){if(url===null||typeof url==="undefined"||url.trim().length===0)return url;let list=[];if(obj.w!==undefined)list.push(`width=${obj.w}`);if(obj.h!==undefined)list.push(`height=${obj.h}`);list=list.length>0?`?${list.join("&")}`:"";return`${amazonRename.rename(url)}${list}`}}exports.default=amazonRename; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor}var amazonRename=/*#__PURE__*/function(){function amazonRename(){_classCallCheck(this,amazonRename)}_createClass(amazonRename,null,[{key:"rename",value:function rename(url){return url.replace("s3-us-west-1.amazonaws.com/screenshots.templatemonster.com","s3.tmimgcdn.com").replace("s3.us-west-1.amazonaws.com/screenshots.templatemonster.com","s3.tmimgcdn.com").replace("s3-us-west-1.amazonaws.com/tmuploader","s3u.tmimgcdn.com").replace("tmuploader.s3.us-west-1.amazonaws.com","s3u.tmimgcdn.com").replace("tmauthors.s3.amazonaws.com","s3a.tmimgcdn.com").replace("s3.amazonaws.com/tmauthors","s3a.tmimgcdn.com")}},{key:"convert",value:function convert(url,obj){if(url===null||typeof url==="undefined"||url.trim().length===0)return url;var list=[];if(obj.w!==undefined)list.push(`width=${obj.w}`);if(obj.h!==undefined)list.push(`height=${obj.h}`);list=list.length>0?`?${list.join("&")}`:"";return`${amazonRename.rename(url)}${list}`}}]);return amazonRename}();exports.default=amazonRename; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@plasma-platform/amazon-rename", | ||
"version": "1.1.4-alpha.0", | ||
"version": "1.1.5-alpha.0", | ||
"description": "Replace amazon buckets by one we need", | ||
@@ -18,5 +18,5 @@ "main": "./lib/index.js", | ||
"test:coverage": "run-s build test:codeCoverage", | ||
"test:code": "jest --passWithNoTests", | ||
"test:codeCoverage": "jest --coverage --passWithNoTests", | ||
"version": "" | ||
"test:code": "cross-env NODE_ENV=test jest --passWithNoTests", | ||
"test:codeCoverage": "cross-env NODE_ENV=test jest --coverage --passWithNoTests", | ||
"version": "npm run test" | ||
}, | ||
@@ -29,13 +29,5 @@ "author": "Anton Nemtsev <thesilentimp@gmail.com>", | ||
"license": "CC-BY-4.0", | ||
"lint-staged": { | ||
"source/*.{jsx,js}": [ | ||
"npm run format", | ||
"eslint --color -f stylish --fix", | ||
"git add . -A", | ||
"jest --bail --findRelatedTests" | ||
] | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git@gitlab.com:TemplateMonster/PlasmaPlatform/Frontend/Services/tm-service-currencies.git" | ||
"url": "git@gitlab.com:TemplateMonster/PlasmaPlatform/Frontend/plasma-platform.git" | ||
}, | ||
@@ -47,3 +39,3 @@ "keywords": [ | ||
], | ||
"gitHead": "399fc346a2e4a6e2ce0f9cfba47446970704864b" | ||
"gitHead": "f0b4ab6e614a4dbc41e60001e8f266f3eec103b2" | ||
} |
Sorry, the diff of this file is not supported yet
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
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
6023
11
0