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

aliyun-cdi

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aliyun-cdi - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

4

index.js

@@ -12,3 +12,3 @@ var crypto = require('crypto');

// ImageUrl: '["http://dun.163.com/res/sample/sex_2.jpg"]',
Scene: JSON.stringify(params.Scene),
Scene: JSON.stringify(params.Scene || []),
// RegionId: 'cn-hangzhou',

@@ -25,3 +25,3 @@ AccessKeyId: params.AccessKeyID,

if (params.Action === 'ImageDetection') {
defaultParams.ImageUrl = encodeStr(params.ImageUrl);
defaultParams.ImageUrl = encodeStr(JSON.stringify(params.ImageUrl || []));
} else if (params.Action === 'TextKeywordFilter') {

@@ -28,0 +28,0 @@ defaultParams.Text = encodeStr(params.Text);

{
"name": "aliyun-cdi",
"version": "0.1.5",
"version": "0.1.6",
"description": "阿里云内容检测API",

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

@@ -9,3 +9,3 @@ var request = require('request');

Scene: ['ocr'],
ImageUrl: '["http://ww1.sinaimg.cn/mw690/5375acf5gw1f6amimko3hj20x20lsagc.jpg"]'
ImageUrl: ['http://ww1.sinaimg.cn/mw690/5375acf5gw1f6amimko3hj20x20lsagc.jpg']
});

@@ -42,3 +42,3 @@

Scene: ['porn'],
ImageUrl: '["http://dun.163.com/res/sample/sex_2.jpg"]'
ImageUrl: ['http://dun.163.com/res/sample/sex_2.jpg']
});

@@ -45,0 +45,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