New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

strapi-cdn-url-rewrite

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strapi-cdn-url-rewrite - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

index.js

@@ -22,3 +22,3 @@ const flatten = require('flat')

cdn = data => {
cdnRewrite = data => {
try {

@@ -25,0 +25,0 @@ if (data && data.constructor === Object) {

{
"name": "strapi-cdn-url-rewrite",
"version": "0.0.2",
"version": "0.0.3",
"description": "Strapi controller module to rewrite upload URLs to CDN",

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

@@ -30,10 +30,10 @@ # Welcome to strapi-cdn-url-rewrite 👋

const { cdn } = new StrapiCdnUrlRewrite()
const { cdnRewrite } = new StrapiCdnUrlRewrite()
module.exports = {
async find(ctx) {
return cdn(await strapi.services.{COLLECTION}.find())
return cdnRewrite(await strapi.services.{COLLECTION}.find())
},
async findOne(ctx) {
return cdn(await strapi.services.{COLLECTION}.findOne())
return cdnRewrite(await strapi.services.{COLLECTION}.findOne())
}

@@ -46,3 +46,3 @@ }

```javascript
const { cdn } = StrapiCdnUrlRewrite(storageUrl, cdnUrl)
const { cdnRewrite } = StrapiCdnUrlRewrite(storageUrl, cdnUrl)
```

@@ -49,0 +49,0 @@

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