@linaria/utils
Advanced tools
Comparing version 4.5.2 to 4.5.3
@@ -5,7 +5,7 @@ import { createId } from './createId'; | ||
const rootScope = scope.getProgramParent(); | ||
let object = rootScope.getData('__linariaPreval'); | ||
const programPath = rootScope.path; | ||
let object = programPath.getData('__linariaPreval'); | ||
if (object) { | ||
return object; | ||
} | ||
const programPath = rootScope.path; | ||
if (programPath.node.sourceType === 'script') { | ||
@@ -53,3 +53,3 @@ // CJS exports.__linariaPreval = {}; | ||
} | ||
rootScope.setData('__linariaPreval', object); | ||
programPath.setData('__linariaPreval', object); | ||
return object; | ||
@@ -56,0 +56,0 @@ } |
@@ -12,7 +12,7 @@ "use strict"; | ||
const rootScope = scope.getProgramParent(); | ||
let object = rootScope.getData('__linariaPreval'); | ||
const programPath = rootScope.path; | ||
let object = programPath.getData('__linariaPreval'); | ||
if (object) { | ||
return object; | ||
} | ||
const programPath = rootScope.path; | ||
if (programPath.node.sourceType === 'script') { | ||
@@ -60,3 +60,3 @@ // CJS exports.__linariaPreval = {}; | ||
} | ||
rootScope.setData('__linariaPreval', object); | ||
programPath.setData('__linariaPreval', object); | ||
return object; | ||
@@ -63,0 +63,0 @@ } |
{ | ||
"name": "@linaria/utils", | ||
"version": "4.5.2", | ||
"version": "4.5.3", | ||
"description": "Blazing fast zero-runtime CSS in JS library", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
598733