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

@primer/primitives

Package Overview
Dependencies
Maintainers
15
Versions
4479
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@primer/primitives - npm Package Compare versions

Comparing version 0.0.0-20250123003511 to 0.0.0-20250123103827

dist/build/formats/utilities/createPropertyFormatterWithRef.d.ts

5

dist/build/formats/cssAdvanced.js

@@ -11,3 +11,4 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

import { format } from 'prettier';
import { fileHeader, formattedVariables, sortByName } from 'style-dictionary/utils';
import { fileHeader, sortByName } from 'style-dictionary/utils';
import getFormattedVariables from './utilities/getFormattedVariables.js';
const wrapWithSelector = (css, selector) => {

@@ -73,3 +74,3 @@ // return without selector

// add tokens into root
const css = formattedVariables({
const css = getFormattedVariables({
format: 'css',

@@ -76,0 +77,0 @@ dictionary: filteredDictionary,

6

dist/build/platforms/css.js
import { isFromFile, isSource } from '../filters/index.js';
import { outputReferencesTransformed, outputReferencesFilter } from 'style-dictionary/utils';
import { outputReferencesTransformedWithObject } from './utilities/outputReferencesTransformedWithObject.js';
const getCssSelectors = (outputFile) => {

@@ -53,3 +54,6 @@ // check for dark in the beginning of the output filename

]),
options: Object.assign({ showFileHeader: false, outputReferences: (token, platformOptions) => outputReferencesFilter(token, platformOptions) && outputReferencesTransformed(token, platformOptions), descriptions: false, queries: getCssSelectors(outputFile) }, options === null || options === void 0 ? void 0 : options.options),
options: Object.assign({ showFileHeader: false,
// outputReferences: true,
outputReferences: (token, platformOptions) => outputReferencesFilter(token, platformOptions) &&
outputReferencesTransformedWithObject(token, platformOptions), descriptions: false, queries: getCssSelectors(outputFile) }, options === null || options === void 0 ? void 0 : options.options),
},

@@ -56,0 +60,0 @@ {

{
"name": "@primer/primitives",
"version": "0.0.0-20250123003511",
"version": "0.0.0-20250123103827",
"description": "Typography, spacing, and color primitives for Primer design system",

@@ -65,6 +65,6 @@ "type": "module",

"eslint-config-prettier": "^9.1.0",
"eslint-plugin-react": "7.37",
"eslint-import-resolver-typescript": "3.6",
"eslint-plugin-github": "^5.1.3",
"eslint-plugin-jsx-a11y": "6.10",
"eslint-plugin-react": "7.37",
"eslint-plugin-react-hooks": "^5.0.0",

@@ -71,0 +71,0 @@ "json5": "^2.2.1",

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

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

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