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

@plasma-platform/amazon-rename

Package Overview
Dependencies
Maintainers
7
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@plasma-platform/amazon-rename - npm Package Compare versions

Comparing version 1.1.4-alpha.0 to 1.1.5-alpha.0

2

lib/index.js

@@ -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

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