@travetto/manifest
Advanced tools
Comparing version 5.0.0-rc.2 to 5.0.0-rc.3
{ | ||
"name": "@travetto/manifest", | ||
"version": "5.0.0-rc.2", | ||
"version": "5.0.0-rc.3", | ||
"description": "Support for project indexing, manifesting, along with file watching", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -53,13 +53,9 @@ <!-- This file was generated by @travetto/doc and should not be modified directly --> | ||
const tslib_1 = require("tslib"); | ||
const Ⲑ_decorator_1 = tslib_1.__importStar(require("@travetto/registry/src/decorator.js")); | ||
const Ⲑ_function_1 = tslib_1.__importStar(require("@travetto/runtime/src/function.js")); | ||
var ᚕm = ["@travetto/manifest", "doc/test-class"]; | ||
let TestClass = class TestClass { | ||
static Ⲑinit = Ⲑ_function_1.register(TestClass, ᚕm, { hash: 197152026, lines: [1, 3] }, { doStuff: { hash: 51337554, lines: [2, 2] } }, false, false); | ||
class TestClass { | ||
static Ⲑinit = Ⲑ_function_1.registerFunction(TestClass, ᚕm, { hash: 197152026, lines: [1, 3] }, { doStuff: { hash: 51337554, lines: [2, 2] } }, false, false); | ||
async doStuff() { } | ||
}; | ||
} | ||
exports.TestClass = TestClass; | ||
exports.TestClass = TestClass = tslib_1.__decorate([ | ||
Ⲑ_decorator_1.Register() | ||
], TestClass); | ||
``` | ||
@@ -66,0 +62,0 @@ |
import fs from 'node:fs/promises'; | ||
import { readFileSync } from 'node:fs'; | ||
import os from 'node:os'; | ||
@@ -11,5 +12,5 @@ import { path } from './path'; | ||
static async bufferedFileWrite(file: string, content: string): Promise<void> { | ||
const temp = path.resolve(path.dirname(file), `.${process.hrtime()[0]}.${path.basename(file)}`); | ||
const temp = path.resolve(os.tmpdir(), `${process.hrtime()[1]}.${path.basename(file)}`); | ||
await fs.writeFile(temp, content, 'utf8'); | ||
await fs.mkdir(path.dirname(file), { recursive: true }); | ||
await fs.writeFile(temp, content, 'utf8'); | ||
await fs.rename(temp, file); | ||
@@ -16,0 +17,0 @@ } |
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
1380
61717
215