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

@inlang/core

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@inlang/core - npm Package Compare versions

Comparing version 0.3.0-prerelease.4 to 0.3.0-prerelease.5

8

dist/config/environment-functions/$import.d.ts

@@ -20,4 +20,4 @@ import type { fs } from "memfs";

export declare function initialize$import(args: {
/** the directory from which the import should be resolved */
basePath: string;
/** the path from which the import should be resolved */
workingDirectory: string;
/** the fs from which the file can be read */

@@ -37,4 +37,4 @@ fs: typeof fs.promises;

declare function $import(uri: string, environment: {
/** current working directory from which the import should be resolved */
basePath: string;
/** directory from which the import should be resolved */
workingDirectory: string;
/** the fs from which the file can be read */

@@ -41,0 +41,0 @@ fs: typeof fs.promises;

@@ -29,3 +29,3 @@ /**

else {
moduleAsText = (await environment.fs.readFile(`${environment.basePath}/${uri}`, "utf-8"));
moduleAsText = (await environment.fs.readFile(`${environment.workingDirectory}/${uri}`, "utf-8"));
}

@@ -32,0 +32,0 @@ const moduleWithMimeType = "data:application/javascript;base64," + btoa(moduleAsText);

{
"name": "@inlang/core",
"type": "module",
"version": "0.3.0-prerelease.4",
"version": "0.3.0-prerelease.5",
"private": false,

@@ -6,0 +6,0 @@ "publishConfig": {

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