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

platformicons

Package Overview
Dependencies
Maintainers
0
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 7.0.0 to 7.0.1

esmbuild/index.js

16

build/index.js

@@ -1,5 +0,13 @@

export { default as PlatformIcon } from "./platformIcon";
export { preloadIcons } from "./preload";
import { PLATFORM_TO_ICON } from "./platformIcon";
export const platforms = Object.keys(PLATFORM_TO_ICON);
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.platforms = exports.preloadIcons = exports.PlatformIcon = void 0;
var platformIcon_1 = require("./platformIcon");
Object.defineProperty(exports, "PlatformIcon", { enumerable: true, get: function () { return __importDefault(platformIcon_1).default; } });
var preload_1 = require("./preload");
Object.defineProperty(exports, "preloadIcons", { enumerable: true, get: function () { return preload_1.preloadIcons; } });
const platformIcon_2 = require("./platformIcon");
exports.platforms = Object.keys(platformIcon_2.PLATFORM_TO_ICON);
//# sourceMappingURL=index.js.map

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

import React from "react";
import * as React from 'react';
export declare const PLATFORM_TO_ICON: {

@@ -3,0 +3,0 @@ readonly amazon: "amazon";

@@ -1,3 +0,29 @@

import React from "react";
export const PLATFORM_TO_ICON = {
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.PLATFORM_TO_ICON = void 0;
const React = __importStar(require("react"));
exports.PLATFORM_TO_ICON = {
amazon: "amazon",

@@ -240,3 +266,3 @@ amd: "amd",

const normalizedPlatform = normalizePlatform(platform);
const icon = PLATFORM_TO_ICON[normalizedPlatform];
const icon = exports.PLATFORM_TO_ICON[normalizedPlatform];
if (icon) {

@@ -276,3 +302,3 @@ return icon;

};
export default PlatformIcon;
exports.default = PlatformIcon;
//# sourceMappingURL=platformIcon.js.map

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

import { PLATFORM_TO_ICON } from "./platformIcon";
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.preloadIcons = preloadIcons;
const platformIcon_1 = require("./platformIcon");
/**

@@ -7,6 +10,6 @@ * Insert <link ref="preload" /> elements into the <head> node to preload

*/
export function preloadIcons(format) {
function preloadIcons(format) {
const formats = format ? [format] : ["lg", "sm"];
const paths = formats
.map((f) => Object.values(PLATFORM_TO_ICON).map((icon) => require(`../${f === "lg" ? "svg_80x80" : "svg"}/${icon}.svg`)))
.map((f) => Object.values(platformIcon_1.PLATFORM_TO_ICON).map((icon) => require(`../${f === "lg" ? "svg_80x80" : "svg"}/${icon}.svg`)))
.flat();

@@ -13,0 +16,0 @@ document.querySelector("head")?.append(...paths.map((path) => {

{
"name": "platformicons",
"version": "7.0.0",
"version": "7.0.1",
"description": "Web Platform and Framework Logo Set",
"main": "build/index.js",
"module": "esmbuild/index.js",
"types": "build/index.d.ts",

@@ -10,2 +11,3 @@ "sideEffects": false,

"build/",
"esmbuild/",
"svg/",

@@ -31,4 +33,3 @@ "svg_80x80/"

"scripts": {
"build": "tsc",
"dev": "tsc --watch",
"build": "tsc && tsc -p tsconfig.esm.json",
"prepare": "yarn build"

@@ -35,0 +36,0 @@ },

Sorry, the diff of this file is not supported yet

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