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

platformicons

Package Overview
Dependencies
Maintainers
1
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

platformicons - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

build/index.esm.js

0

build/index.d.ts
export { default } from "./platformIcon";

4

build/index.js

@@ -1,2 +0,2 @@

export { default } from "./platformIcon";
//# sourceMappingURL=index.js.map
var a,t=(a=require("react"))&&"object"==typeof a&&"default"in a?a.default:a;function e(){return(e=Object.assign||function(a){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(a[o]=e[o])}return a}).apply(this,arguments)}var o={android:"android",apple:"apple",cocoa:"apple","cocoa-objc":"apple","cocoa-swift":"swift",cordova:"cordova",csharp:"csharp","csharp-aspnetcore":"dotnet",dart:"dart",default:"default",dotnet:"dotnet","dotnet-aspnetcore":"dotnet",electron:"electron",elixir:"elixir",flutter:"flutter",go:"go",java:"java","java-android":"android","java-appengine":"app-engine","java-log4j":"java","java-log4j2":"java","java-logback":"logback","java-logging":"java",javascript:"javascript","javascript-angular":"angularjs","javascript-angularjs":"angularjs","javascript-backbone":"backbone","javascript-browser":"javascript","javascript-cordova":"cordova","javascript-electron":"electron","javascript-ember":"ember","javascript-react":"react","javascript-vue":"vue",native:"nativec",node:"nodejs","node-awslambda":"aws","node-azurefunctions":"azure","node-connect":"nodejs","node-express":"express","node-gcpfunctions":"gcp","node-koa":"koa","objective-c":"apple",perl:"perl",php:"php","php-laravel":"laravel","php-monolog":"php","php-symfony2":"symfony","php-symfony":"symfony",python:"python","python-aiohttp":"aiohttp","python-awslambda":"aws","python-azurefunctions":"azure","python-bottle":"bottle","python-celery":"celery","python-django":"django","python-falcon":"falcon","python-flask":"flask","python-gcpfunctions":"gcp","python-pylons":"python","python-pyramid":"pyramid","python-pythonawslambda":"aws","python-rq":"redis","python-sanic":"python","python-tornado":"tornado","python-tryton":"tryton","react-native":"react",ruby:"ruby","ruby-rack":"ruby","ruby-rails":"rails",rust:"rust",swift:"swift"};function r(a){return a.replace(".","-")}function n(a){var t=r(a);return o[t]||(t.includes("-")?p(t):"default")}function p(a){return n(r(a).split("-")[0])}module.exports=function(a){var o=a.platform,r=a.size,i=void 0===r?20:r,s=a.format,c=void 0===s?"sm":s,l=a.radius,d=void 0===l?3:l,u=a.withLanguageIcon,v=a.languageIconStyles,y=void 0===v?{}:v,h=a.style,g=void 0===h?{}:h,f=function(a,t){if(null==a)return{};var e,o,r={},n=Object.keys(a);for(o=0;o<n.length;o++)t.indexOf(e=n[o])>=0||(r[e]=a[e]);return r}(a,["platform","size","format","radius","withLanguageIcon","languageIconStyles","style"]),j=n(o),b=require("../"+("lg"===c?"svg_80x80":"svg")+"/"+j+".svg"),m=p(o),w=require("../svg/"+m+".svg");return u&&m!==j&&"default"!==m?t.createElement("div",Object.assign({},f,{style:e({position:"relative"},g)}),t.createElement("img",{src:b,width:i,height:i,style:{borderRadius:d+"px"}}),t.createElement("img",{src:w,style:e({position:"absolute",bottom:"-1px",right:"-1px",height:"30%",width:"30%",borderRadius:"2px"},y)})):t.createElement("img",Object.assign({src:b,width:i,height:i},f,{style:e({borderRadius:d+"px"},g)}))};
//# sourceMappingURL=index.js.map

@@ -0,0 +0,0 @@ import React from "react";

{
"name": "platformicons",
"version": "3.1.0",
"version": "3.1.1",
"description": "Web platform and framework icon set.",
"main": "build/index.js",
"source": "src/index.tsx",
"repository": {

@@ -22,3 +23,4 @@ "type": "git",

"scripts": {
"build": "rm -rf ./build && tsc",
"build": "microbundle --jsx React.createElement",
"dev": "microbundle watch --jsx React.createElement",
"prepare": "yarn build"

@@ -31,2 +33,3 @@ },

"devDependencies": {
"microbundle": "^0.12.4",
"react": "^16 || ^17",

@@ -33,0 +36,0 @@ "react-dom": "^16 || ^17",

Sorry, the diff of this file is not supported yet

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